gamerenzz 当前离线
列兵
for /f "delims=" %%i in ('FORFILES /P "D:\test1" /D -3 /S /C "cmd /c if @ISDIR==FALSE echo @path"^| findstr /VI "D:\test1\123"') do del /F /Q "%%~i"复制代码
flashercs 当前在线
少校
for /f "delims=" %%i in ('FORFILES /P "D:\test1" /D -3 /S /C "cmd /c if @ISDIR==FALSE echo @path"^| findstr /ilvc:"D:\test1\123"') do del /F /Q "%%~i"复制代码
TOP
for /f "delims=" %%i in ('dir /ad /b /s "D:\test1\*"^|findstr /ilvc:"D:\test1\123"^|sort /r') do rd "%%~i"复制代码