Run bat files in parallel and wait until they are finished before run new set of bat files

I have a series of bat files that I want to run in parallel, for example: start program1_1.bat start program1_2.bat start program1_3.bat wait until program1 finished then start program2_1.bat start program2_2.bat start program2_3.bat wait until program2 finished then … So far, what I’ve tried is this function: :waitForFinish set counter=0 for /f %%i in (‘tasklist…

Details