I have seen questions asking about the difference between the several commands that can be used to launch programs from within a batch script (eg1, eg2), but none of the responses seem to describe the difference between direct invocation (script.bat) and call script.bat.
Asked
Active
Viewed 32 times
0
QuaternionsRock
- 710
- 5
- 12
-
2Are you asking about what happens if you open the command prompt and run `call script.bat`? Jeb's answer in the first question you linked states the difference between using `call` and not using `call` inside of a script - the main script will only continue after `script.bat` completes if you use `call`. From the same question, DmitryBoyko's answer states that `call script.bat` on the command prompt does nothing additional compared to running `script.bat` normally. – SomethingDark Dec 11 '21 at 04:51