Newbie batch lesson #1, seemingly needed:
if, in a batch file, you just place the name of another batch file as a command, then control will transfer to the second batch file and never come back.
You all talk about "calling" the other batch file; yet nobody remembered the call command, which hands back control after the called batch file terminates. (If it does!)
wrong: (If you want to execute the lines after batch2.bat)
@echo off
batch2.bat
REM this line never executes
right:
@echo off
call batch2.bat
REM this line will execute when batch2.bat is finished