Objective: 1. Run two batch files in parallel 2. Execute third file Post completion of (1.)
What i have done?
1- Created a batch file Pr1.bat with following commands
cd Directory
START CScript "X.vbs"
START CScript "Y.vbs"
2- Created a batch file Pr2.bat with following commands
cd Directory
START CScript "Z.vbs"
3- Create a master batch file master.bat with following commands
cd Directory (same as above directory)
CALL Pr1.bat
CALL Pr2.bat
PAUSE
Now when i execute the master batch file, all three .vbs script gets triggered simultaneously. What i want to accomplish is to wait for the Y.vbs csript process to finish off before returning control to the master file.
How do i make batch file wait for the cscript to finish off and then execute the next call functions?