0

I have 2 files start.bat and include.bat in a directory

REM include.bat
c:\php\php.exe script.php
@echo off
echo T1
CALL include.bat
echo T2
include.bat
echo T3

T3 does not show. .bat script dies.
What's the difference between calling bat file directly vs CALL?

aschipfl
  • 33,626
  • 12
  • 54
  • 99
Grzegorz
  • 3,538
  • 4
  • 29
  • 47
  • 2
    I believe you should run `call /?` – montonero Mar 05 '19 at 07:34
  • 3
    You can clearly see the difference by your script: the main script `start.bat` passes over execution control to the other batch file `include.bat` but it does not return to the original one without `call`, but it does when using `call`... – aschipfl Mar 05 '19 at 08:28

0 Answers0