xzwcn 当前离线
六级士官
@echo off&setlocal enabledelayedexpansion for /f "tokens=*" %%a in ('dir /b /ad') do set/a n+=1&ren "%%~a" "!n!.%%~a"复制代码
评分人数
DAIC 当前离线
中将
@echo off set n=0 for /f "tokens=*" %%a in ('dir /b /ad') do ( set /a n+=1 call ren "%%~a" "%%n%%.%%~a" )复制代码
TOP
DAIC 发表于 2013-9-3 10:58
@echo off set n=10000 for /f "tokens=*" %%a in ('dir /b /ad') do ( set /a n+=1 call ren "%%~a" "%%n:~-2%%.%%~a" )复制代码
Lumiere (Lucien)当前离线
上校
@echo off&setlocal enabledelayedexpansion set n=0 for /f "tokens=*" %%a in ('dir /b /ad') do ( set /a n+=1 set /a m=!n!/10 if !m!==0 ren "%%~a" "0!m!.%%~a" else ren "%%~a" "!m!.%%~a" ) endlocal pause复制代码
terse 当前离线
@echo off set /a n=0 for /f %%a in (1.txt) do ( set /a n+=1 call md %%n%%%%a ) pause复制代码