- @echo off&color 0e
- set/p file_path=输入路径:
- set/p number=输入数字[大于或等于]的进行删除:
- for /f "delims=" %%i in ('dir/a-d/s/b/l/on "%file_path%\*.*"') do (
- if /i not "%%~ni"=="%%~nxi" (if /i "%%~xi"==".png" if %%~ni geq %number% del/f/q "%%i"
- if /i "%%~xi"==".swf" if /i "%%~xi"==".png" if %%~ni geq %number% del/f/q "%%i"
- )
- )
- pause
复制代码
|