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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With