I have four files in the same folder which I want to run one after the other in a master batch, meaning the second file should run only after the first file is finished running and so on and so forth. I have tried this:
START /wait file1.bat
START /wait file2.bat
START /wait file3.exe
START file4.bat
Saved the file as master.bat. When I run it, the first file and the second file run, but then the third file does not start. The console window stays open indicating that file2
has finished running. I tried it like this too in case the problem was that it cannot run the .exe file:
START /wait file1.bat
START /wait file2.bat
START file4.bat
Still, file4
does not run.
I also tried this:
call file1.bat
call file2.bat
call file3.exe
call file4.bat
In this case, only the first file runs and then nothing happens after. Does anyone have any idea what I could be doing wrong or how to solve this?