lyd68201 当前离线
列兵
@echo off&SETLOCAL ENABLEDELAYEDEXPANSION for /f "tokens=*" %%a in ('dir /b/ad') do ( cd %%a set n=100 for /f "tokens=*" %%b in ('dir /b/a-d') do ( set /a n+=1 ren "%%b" "%%a!n:~1!%%~xb" ) cd.. )复制代码
评分人数
TOP
DAIC 当前离线
中将
@echo off setlocal enabledelayedexpansion for /f "tokens=*" %%a in ('dir /b /ad') do ( cd %%a set n=100 for /f "tokens=*" %%b in ('dir /b /a-d') do ( set /a n+=1 ren "%%b" "%%a(!n:~1!)%%~xb" ) cd .. )复制代码