@echo off
::for 中使用call不会停止,但使用goto会,标签页对程序不进行任何中断
for /l %%i in (1,1,3) do (
:before
echo "before call!"
call :next1
call :final
:next1
echo "next1 called!"
call :next2
:next2
echo "next2 called!"
call :final
:final
echo "final called!"
)
::for 中使用call不会停止,但使用goto会,标签页对程序不进行任何中断
for /l %%i in (1,1,3) do (
:before
echo "before call!"
call :next1
call :final
:next1
echo "next1 called!"
call :next2
:next2
echo "next2 called!"
call :final
:final
echo "final called!"
)