1.

Solve : need to when child batch file execution is over?

Answer»

Hi
I am calling one batch (child batch file) from from parent batch file.
Now i need to invoke another child batch file from parent once currently running child batch file EXECUTION is over.

any help in this regard will be highly appreciated.

Thanks
Amit CODE: [Select]Call Bat1.bat
Call BAT2.bat
Bat2 will not execute until Bat1 has finished
Graham Quote from: amitkumar.verma on August 17, 2010, 12:16:58 AM


I am calling one batch (child batch file) from from parent batch file.
Now i need to invoke another child batch file from parent once currently running child batch file execution is over.
Any help in this regard will be highly appreciated.

Thanks
Amit


C:test>type main.bat
echo off
echo main
call bat1.bat
echo RETURN from bat2
echo %TIME%
call bat2.bat
echo return from bat
echo %TIME%
echo Bye
C:test>type bat1.bat
echo off
echo bat1
sleep.exe  60
echo %TIME%
exit /b
C:test>type bat2.bat
echo off
echo bat2
sleep.exe  60
echo %TIME%
exit /b
C:test>

Output:

C:test>main.bat
main
bat1
 3:37:24.95
return from bat1
 3:37:24.95
bat2
 3:38:24.97
return from bat2
 3:38:24.97
Bye

C:test>


Discussion

No Comment Found