what does it mean when I call batch script from batch script without CALL or START?
example. I have two scripts a.bat and b.bat
a.bat:
echo I am A >> log
b.bat
echo end of A >> log
b.bat:
echo I am B >> log
sleep 1
echo end of B >> log
after execution of a.bat i see in the log:
I am A
I am B
end of B
Where is message “end of A” ?
The end of message
a.batis never reached because when you call another batch file withoutstartorcallit transfers control over to that batch, and never returns.If you wanted it to return to the calling batch, you would use
call, or you could usestartbut that would start another instance of cmd (unless you use the/bswitch).