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!

Howto multiple commands in .cmd file

Status
Not open for further replies.

stratcat

MIS
Mar 23, 1999
34
0
0
US
Visit site
I need to start 2 progs at once.
A cmd file containing

rem start cmd file
prog1.exe
prog2.exe
rem end cmd file

or

rem start cmd file
prog1.exe & prog2.exe
rem end cmd file

doesn't do it.
prog2.exe won't start until prog1.exe ends and both
progs need to run simultaneously.
I'm sure I'm overlooking something stupidly simple.%-(
Any clues?
Thanks,
Emory
 
Use like this:

Code:
start prog1.exe
start prog2.exe

That should fix it.

HTH
TonHu
 
I found that a few minutes after I posted.
Also added "sleep 2" between the commands to give
prog1 time to stabilize. sleep.exe is from the
NT reskit.

Thanks :-D
Emory
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top