Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

executing multiple .exe files serially through batch file [duplicate]

I have three .exe files inside a folder and I want to run them serially one after another through a batch file. That means, 2nd .exe file will execute after the operation of 1st .exe file. I have written a file but when I run it, the are not executing serially. My batch file is:

Start ""  ".\a.exe"
Start ""  ".\b.exe"
Start ""  ".\c.exe"

How will I execute these files one after another?

like image 272
user3114849 Avatar asked Aug 27 '26 06:08

user3114849


1 Answers

Don't use start if you need to wait until the execution of the exe to execute the next one. start will create a new process and return to the next statement without waiting.

Just use the exe as it is without the start.

So your batch file should be like.

.\a.exe
.\b.exe
.\c.exe
like image 62
Karthikeyan Vaithilingam Avatar answered Aug 29 '26 14:08

Karthikeyan Vaithilingam