How do I call another batch script from within a batch script?
I want it to execute in an if statement.
if
Here is example:
You have a.bat:
@echo off if exist b.bat goto RUNB goto END :RUNB b.bat :END
and b.bat called conditionally from a.bat:
@echo off echo "This is b.bat"