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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vb and cmd.exe

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am using shell() command to open up cmd.exe, here
Shell("C:\windows\system32\cmd.exe /C c:/test.bat", 1) = 1

Im calling cmd.exe and insert a command to execute test.bat. The problem I have is right after cmd execute test.bat, the cmd window immediately closes thus I can see anything that is executed by test.bat. Is there a way to
keep that darn cmd open? I have inserted "pause" at the end of the test.bat but that doesnt seem to work. please help me out on this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top