MyFile1.bat
invokes MyFile2.bat
twice:
start MyFile2.bat argA, argB, argC
start MyFile2.bat argX, argY, argZ
At this point, how can I wait until both processes spawned by the calls to MyFile2.bat
have completed?
Simple use the Start /WAIT parameter.
start /wait MyFile2.bat argA, argB, argC
start /wait MyFile2.bat argX, argY, argZ