Reputation:
How would I go about checking to see if a specific program is done running?
I'm attempting to make a script that runs a series of .exe's (specifically and setup program and a number of patches) in order automatically.
So far I've been able to get them to run at the same time, but that's obviously not what I need.
How can I get them to run each after the other is completed?
I've looked at a few already posted, but I wasn't able to modify them to what I need.
Upvotes: 0
Views: 584
Reputation: 5952
Could you specify what method are you using for running the programs? There are more than one.
For instance, if you are using "START", there's a "/WAIT" switch which takes care of the waiting.
Upvotes: 0
Reputation: 11935
Run your exe from the bat using this syntax
start /wait foo.exe
to wait for the executable to return before continuing on in the bat file.
Upvotes: 2