
CODE: [Copy to clipboard]@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
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |