3 replies
by joshmorgan Accepted solution
by formerly callpete.com Accepted solution
If you run a command in a batch file, it will run and come back when its finished.
If you want to start a command, then immediately start another one, use START.
Example:
prog1
prog2
prog3
will run prog1, wait for it to finish, then execute prog2... and so on.
Example2:
start prog1
start prog2
start prog3
This will start all three right away.
Hope this helps.
by Member 25348569 Accepted solution
you have to use 'call' else the command processing will stop at the end of the second batch file.
The file, say batch1.bat containing:
batch2.bat
batch3.bat
will exit on completion of batch2.bat. Batch3 won't be run.
The following batch1.bat:
call batch2.bat
batch3.bat
will run batch2 to completion and then return to batch1 and run batch3.bat, stopping the command processing at the end of batch3.
For exes, you don't need call.
Neil :)
This discussion is closed to new replies.
Trending Software posts
Sort by Trending