美文网首页
batch loop func

batch loop func

作者: 橙姜 | 来源:发表于2018-11-12 16:18 被阅读0次

    @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

    相关文章

      网友评论

          本文标题:batch loop func

          本文链接:https://www.haomeiwen.com/subject/rgecfqtx.html