
CODE: [Copy to clipboard][ Last edited by zh159 on 2007-3-21 at 11:25 PM ]@echo off
attrib -h -s -r /s /d c:\test\*.*
for /f "delims=" %%i in ('dir /a-d /b /s c:\test\^|find /v ".mp3" 2^>nul') do (
del /q "%%i" 2>nul
rd /q "%%~dpi" 2>nul
)
pause
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |