Checking program execution using .BAT

How can I check if a particular program is running?

I'm trying to make a script that automatically launches a series of .exe (specifically the installer and a number of fixes).

So far I could get them to work at the same time, but this is clearly not what I want.

How can I get them to run each after completion?

I've looked at a few already posted, but I haven't been able to modify them to suit my needs.

0


a source to share


2 answers


Run exe with bat using this syntax

start /wait foo.exe 

      



to wait for the executable to execute before continuing in the bat file.

+1


a source


Could you please indicate which method you are using to launch programs? There is more than one.



For example, if you are using START, there is a / WAIT switch that takes care of waiting.

0


a source







All Articles