怎么在桌面 编写一个批处理a.bat(利用FOR命令)

2025-01-26 14:36:33
推荐回答(2个)
回答1:

for %%i in (1,1,9) do md C:\dog%%i

回答2:

@echo off&setlocal enabledelayedexpansionset last=0for /l %%a in (1,1,10) do (set "%%a=!last!"set "last=%%a")set "cur=%last%":loopif defined cur (echo !cur!set "cur=!%cur%!"goto loop) else (pauseexit)