bububu 当前离线
列兵
qixiaobin0715 当前离线
大校
@echo off for /f "delims=" %%i in ('dir /b /ad') do ( pushd "%%i" for /f "tokens=1,2 delims=()" %%a ('dir /b /a-d "*(*).jpg"') do ( ren "%%a(%%b).jpg" "%%b.jpg" ) popd )复制代码
TOP
czjt1234 当前离线
少校
zaqmlp 当前离线
上尉
@echo off&cd /d "%~dp0"&mode con lines=5000 for /f "delims=" %%a in ('dir /a-d/b/s "*(*)*"') do ( for /f "tokens=2 delims=()" %%b in ("#%%~na") do ( echo;"%%~a" --^> "%%~b%%~xa" ren "%%~a" "%%~b%%~xa" ) ) pause exit复制代码