singlespark 当前离线
二级士官
lovelymorning 当前离线
四级士官
@echo off Setlocal Enabledelayedexpansion for /f "delims=" %%i in ('dir /b') do ( set na=%%~ni set nb=%%~xi set nc=!na:aaa=bbb! if not "!nc!!nb!"=="%~nx0" ren "%%i" "!nc!!nb!" ) pause复制代码
TOP
batman 当前离线
考官
荣誉版主
@echo off&for /f "delims=" %%i in ('dir /s /a-d /b') do if "%%~nxi" neq "%~nx0" set str=%%~ni&call,ren "%%i" "%%str:aaa=bbb%%%%~xi"复制代码