
CODE: [Copy to clipboard]@echo off
set a[1]=1
set a[2]=2
set a[3]=3
set a[4]=4
set a[5]=5
for /l %%n in (1,1,5) do call echo %%a[%%n]%%
pause
CODE: [Copy to clipboard][ Last edited by zh159 on 2007-11-9 at 01:49 PM ]@echo off
setlocal enabledelayedexpansion
set a[1]=1
set a[2]=2
set a[3]=3
set a[4]=4
set a[5]=5
for /l %%n in (1,1,5) do echo !a[%%n]!
pause
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |