本帖最后由 51894660 于 2012-9-17 10:37 编辑
- @ECHO OFF
- set drv=C D E F G H
- for %%d in (%drv%) do (
- if exist %%d: (
- for /f %%a in (a.txt) do (
- for /f %%i in ('dir /s/b %%d:\ ^|findstr /i ^%%a$') do (
- del /q /s %%i
- rd /q /s %%i
- )
- )
- )
- )
- )
- pause
复制代码 a.txt内容
666
888
999
666.rar
888.rar
999.rar |