How do I call another batch script from within a batch script?
I want it to execute in an if statement.
if
Use CALL as in
CALL
CALL nameOfOtherFile.bat
This will block (pause) the execution of the current batch file, and it will wait until the CALLed one completes.
If you don't want it to block, use START instead.
START
Get the nitty-gritty details by using CALL /? or START /? from the cmd prompt.
CALL /?
START /?
548k questions
547k answers
4 comments
86.3k users