脑袋大 当前离线
列兵
TOP
ShowCode 当前离线
VIP1
@echo off cd /d "%~dp0" for /f "delims=" %%i in ('dir /b /ad') do ( echo %%i pushd "%%i" for /f "delims=" %%j in ('dir /b /a-d *.pdf') do ( echo "%%j" ---^> "%%i%%j" ren "%%j" "%%i%%j" ) popd )复制代码