@echo off
::for %%i in (a,b,c) do echo %%i
::for %%i in ("A,1", "B,2", "C,3") do echo %%i
::for /l %%x in (1,1,100) do echo %%x
FOR %%G IN ("aa,1","bb,2","cc,3","dd,4") DO (@echo %%G
For /F "tokens=1,2 delims=," %%H in (%%G) DO (
call:myEchoFunc %%H %%I
)
)
pause
echo.&pause&goto:eof
:myEchoFunc
echo.
echo.1st parameter %~1
echo.2nd parameter %~2
goto:eof
网友评论