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