我想把 :ABCDEFGHJIJK
这几个字母作为单独变量应该怎么做
SET A=A
SET B=B
SET C=C
SET D=D
...........
这几个字母作为单独变量应该怎么做
SET A=A
SET B=B
SET C=C
SET D=D
...........
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
@echo off
set str=abcdefg
:loop
set tmp=%str:~0,1%
set str=%str:~1%
set %tmp%=this is %tmp% comment
echo.--%tmp%--
if "%str%" == "" goto :END
goto :loop
:END
for %%a in (a b c d e f g) do (
call echo.%%%%a%%
)
pause&goto :EOF