1 :: echo I don't want this to be executed inside "test", it should be executed after "call".
2 rem echo I don't want this to be executed inside "test", it should be executed after "call".
3 设立个条件,加在前面:
set /a n+=1&call :test
ECHO After "call", this wil be executed.
goto :eof
:test
echo Just a test
if %n% lss 2 goto :eof
echo I don't want this to be executed inside "test", it should be executed after "call".
以上代码当call :test被执行一次以上后,每次将执行后面的echo I don't want this to be executed inside "test", it should be executed,第一次时不会执行。