echo off for /f “delims=” %%i in (‘dir /ad /b /s “文件名”’) do (echo %%i @del /f/s/q/a “%%i*.*” @rmdir /s/q “%%i” ) pause
哈哈 rm -r -f .