
CODE: [Copy to clipboard][ Last edited by huahua0919 on 2008-7-1 at 07:00 PM ]@echo off
set str=22
for %%a in ("1=A10" "2=A20" "22=A100") do (call call set str=%%a%%%%%%str:%%~a%%%%%%)
echo %str%
pause
CODE: [Copy to clipboard]或者@echo off
set str=22
set .1=10
set .2=20
set .22=100
call echo A%%.%str%%%
pause
CODE: [Copy to clipboard][ Last edited by 26933062 on 2008-7-1 at 08:24 PM ]@echo off
set str=22
for %%a in ("1=A10" "2=A20" "22=A100") do set .%%~a
call echo %%.%str%%%
pause
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |