call :test
ECHO After "call", this wil be executed.
:test
echo Just a test
REM 难道一定要把 :test 放在最后或者使用 Goto语句才能不执行下边语句
echo I don't want this to be executed inside "test", it should be executed after "call".
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
call :test
ECHO After "call", this wil be executed.
:test
echo Just a test
REM 难道一定要把 :test 放在最后或者使用 Goto语句才能不执行下边语句
echo I don't want this to be executed inside "test", it should be executed after "call".call :test
ECHO After "call", this wil be executed.
goto :eof
:test
echo Just a test
goto :eof
echo I don't want this to be executed inside "test", it should be executed after "call".
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".