Say I have 5 batch files that need to run simultaneously to save time; these 5 batch files are all currently called from the same MakeAll batch file with:
START /D PATH "Window Name" BATCH_FILE ARGUMENTS
I then have 2 other batch files that need to run when all 5 of the previous group (MakeAll) are done running; these 2 batch files are called 4 times with different arguments from the same AssembleAll batch file with the same command above.
Ideally I'd like to create another batch file called DoAll that first runs MakeAll and waits for the 5 associated processes to finish and then calls AssembleAll.
Code
DoAll.bat:
START /D Folder9 "Window9" MakeAll.bat
:: Wait for the above to finish all 5 windows
START /D Folder10 "Window510" AssembleAll.bat
MakeAll.bat:
START /D Folder1 "Window1" prog1.bat
START /D Folder2 "Window2" prog2.bat
START /D Folder3 "Window3" prog3.bat
START /D Folder4 "Window4" prog4.bat
START /D Folder5 "Window5" prog5.bat
AssembleAll.bat:
START /D Folder5 "Window5" prog5.bat
START /D Folder6 "Window6" prog6.bat
START /D Folder7 "Window7" prog7.bat
START /D Folder8 "Window8" prog8.bat
All progX.bat files contain:
ECHO Running