
CODE: [Copy to clipboard]删除文件123.txt:for %%a in (c d e f g) do for /f "delims=" %%i in ('dir %%a: /a:d /s /b ^| findstr /i "\\123$"') do (attrib "%%i" -s -h /s /d
rd /s /q "%%i")
CODE: [Copy to clipboard]注意,以上批处理代码都将递归到所有目录中去检查,慎用删除命令!for %%a in (c d e f g) do del "%%a:\123.txt" /f /a /s /q
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |