what does it mean when I call batch script from batch script withoutCALL orSTART?
example. I have two scripts a.bat and b.bat
a.bat:
echo I am A >> logb.batecho end of A >> logb.bat:
echo I am B >> logsleep 1echo end of B >> logafter execution of a.bat i see in thelog:
I am A I am B end of BWhere is message "end of A" ?
- stackoverflow.com/questions/1103994/…001– 0012013-01-29 15:22:20 +00:00CommentedJan 29, 2013 at 15:22
1 Answer1
The end of messagea.bat is never reached because when you call another batch file withoutstart orcall it transfers control over to that batch, and never returns.
If you wanted it to return to the calling batch, you would usecall, or you could usestart but that would start another instance of cmd (unless you use the/b switch).
1 Comment
start /B starts a newcmd instance (check in Windows Task Manager), but no new window is created...Explore related questions
See similar questions with these tags.
