how to make the batch file wait until another batch file completes execution?

Posted by Arunachalam on Stack Overflow See other posts from Stack Overflow or by Arunachalam
Published on 2010-04-03T18:13:36Z Indexed on 2010/04/03 18:23 UTC
Read the original article Hit count: 284

Filed under:
|
|

how to make the batch file wait until another batch file completes execution?

let me explain with an example.

echo hi >r.txt
echo some piece of code >>r.txt 

start ar.bat

echo some piece of coe >>ar.txt 

i want the code after start ar.bat to execute after this batch file exits ..

i have tried without start it works but i want to run it in a seperate window ..is there any function to check whether that window which is running ar.bat is present ?

© Stack Overflow or respective owner

Related posts about command-line

Related posts about Windows