1.

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

Answer» <html><body><p>Hi<br/>I am calling one batch (child batch file) from from parent batch file. <br/>Now i need to invoke another child batch file from parent once currently running child batch file <a href="https://interviewquestions.tuteehub.com/tag/execution-979196" style="font-weight:bold;" target="_blank" title="Click to know more about EXECUTION">EXECUTION</a> is over.<br/><br/>any help in this regard will be highly appreciated.<br/><br/>Thanks<br/>Amit <a href="https://interviewquestions.tuteehub.com/tag/code-25512" style="font-weight:bold;" target="_blank" title="Click to know more about CODE">CODE</a>: <a>[Select]</a>Call Bat1.bat<br/>Call <a href="https://interviewquestions.tuteehub.com/tag/bat2-394563" style="font-weight:bold;" target="_blank" title="Click to know more about BAT2">BAT2</a>.bat<br/>Bat2 will not execute until Bat1 has finished<br/>Graham Quote from: amitkumar.verma on August 17, 2010, 12:16:58 AM</p><blockquote><br/>I am calling one batch (child batch file) from from parent batch file. <br/>Now i need to invoke another child batch file from parent once currently running child batch file execution is over.<br/>Any help in this regard will be highly appreciated.<br/><br/>Thanks<br/>Amit<br/></blockquote> <br/><br/>C:test&gt;type main.bat<br/>echo off<br/>echo main<br/>call bat1.bat<br/>echo <a href="https://interviewquestions.tuteehub.com/tag/return-238023" style="font-weight:bold;" target="_blank" title="Click to know more about RETURN">RETURN</a> from bat2<br/>echo %TIME%<br/>call bat2.bat<br/>echo return from bat<br/>echo %TIME%<br/>echo Bye<br/>C:test&gt;type bat1.bat<br/>echo off<br/>echo bat1<br/>sleep.exe  60<br/>echo %TIME%<br/>exit /b<br/>C:test&gt;type bat2.bat<br/>echo off<br/>echo bat2<br/>sleep.exe  60<br/>echo %TIME%<br/>exit /b<br/>C:test&gt;<br/><br/>Output:<br/><br/>C:test&gt;main.bat<br/>main<br/>bat1<br/> 3:37:24.95<br/>return from bat1<br/> 3:37:24.95<br/>bat2<br/> 3:38:24.97<br/>return from bat2<br/> 3:38:24.97<br/>Bye<br/><br/>C:test&gt;</body></html>


Discussion

No Comment Found