Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run Command Line from VB6

Status
Not open for further replies.

jedownsjr

IS-IT--Management
Jun 2, 2003
121
0
0
US
Hello. Could someone please tell me if you can run a command line from a VB6 program? If you could provide some sample code it would be helpful -- I'm not that advanced with VB.

Basically, I just want to run "c:\folder\filename.bat" or equivalent. Very simple ... I just don't know how to do it.

Thank you!
 
Hi. There is a Shell command that accepts 2 parameters...

Shell(PathName, WindowState)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top