
CODE: [Copy to clipboard]看这个,如果文件夹数量在1000以内可以。@echo off
set num1=0
for /f "delims=" %%i in ('dir /ad /b') do (
set /a num1+=1
call set num1=0000%%num1%%
call ren "%%i" %%num1:~-3%%
)
pause
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |