[ Last edited by sea1112 on 2008-12-24 at 10:26 ]作者: tongzj 时间: 2008-12-23 16:21 setlocal enabledelayedexpansion
set num=1
ren c:\xx 0
echo.>command.txt
for /f "tokens=*" %%a in ('dir /b /s /ad c:\0') do (
echo ren "%%a" !num!>>command.txt
set /a num+=1
)
sort /r command.txt /o command.bat
call command.bat作者: sea1112 时间: 2008-12-23 19:12
Quote:
Originally posted by tongzj at 2008-12-23 04:21 PM:
setlocal enabledelayedexpansion
set num=1
ren c:\xx 0
echo.>command.txt
for /f "tokens=*" %%a in ('dir /b /s /ad c:\0') do (
echo ren "%%a" !num!>>command.txt
...