CALL Help
Posted: 07 Sep 2011 19:28
Is it possible to call one batch file from another batch file and start from a certain label within the called batch file?
alleypuppy wrote:Is it possible to call one batch file from another batch file and start from a certain label within the called batch file?
Code: Select all
@echo off
set label=label2
call test2.bat
set label=label1
call test2.bat
pause
Code: Select all
goto %label%
:label1
echo label 1
goto eof
:label2
echo label 2
goto eof
:eof