
CODE: [Copy to clipboard]@echo off
(for /f "delims=" %%a in ('dir /a-d /b /s f:\temp\*.log') do (
del /q "%%a"|findstr ".*">nul&&echo 删除%%a成功||echo 删除%%a失败
))>list.txt
start list.txt
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |