DIR "%CD%" /AD /B /S | SORT /R /O list.txt
IF EXIST deleted.txt ATTRIB -S -H -A -R deleted.txt & DEL /F /Q deleted.txt
FOR /F "delims=|" %%i IN ( list.txt ) DO RD "%%i\" & IF NOT EXIST "%%i\" ECHO %%i\>>deleted.txt
IF EXIST deleted.txt NOTEPAD.EXE deleted.txt
DEL /S /Q list.txt
posted on 2007-04-10 03:57
NeedJava 阅读(230)
评论(0) 编辑 收藏