fish 当前离线
中尉
@echo off for %%a in (1,2) do echo %%%%~a pause复制代码
@echo off for %%a in (1,2) do ( set /p=%%%% ~a<nul echo; ) pause复制代码
TOP
FOR 当前离线
@echo off for %%a in (1,2) do ( set /p=%%%%<nul echo ~a ) pause复制代码
wankoilz 当前离线
上尉
原帖由 FOR 于 2010-8-4 11:16 发表 这个只要不和前面的%%a重复就可以了,何必那么麻烦 for %%b in (c,d) do echo %%%%~a
@echo off&setlocal enabledelayedexpansion set x=~ for %%a in (1,2) do echo %%%%!x!a pause复制代码
sgaizxt001 当前离线
大校
@echo off for /l %%i in (1,1,2) do echo %%%%~a pause复制代码