本帖最后由 vspeitao 于 2011-6-6 16:16 编辑
- for /l %%a in (1,1,100) do (
- for /l %%b in (101,1,127) do (
- for /l %%c in (5,1,8) do (
- echo [ServerItem%%a] >>Svrlist.ini
- echo GroupId=1 >>Svrlist.ini
- echo Description=%%b店 >>Svrlist.ini
- echo Server=10.22.%%b.%%c >>Svrlist.ini
- echo Port=3389 >>Svrlist.ini
- echo Domain= >>Svrlist.ini
- echo User=administrator >>Svrlist.ini
- echo Password=**** >>Svrlist.ini
- echo Width=1024 >>Svrlist.ini
- echo Height=768 >>Svrlist.ini
- echo FullScreen=0 >>Svrlist.ini
- echo ColorDeepth=24 >>Svrlist.ini
- )
- )
- )
复制代码 运行上面的代码后%%a全部是1。这是为什么? |