
CODE: [Copy to clipboard]set alldrive=c d e f g h i
for %%a in (%alldrive%) do (
for /f "delims=" %%b in ('dir /ab/b %%a:\found.*') do (
rd /s /q "%%a:\%%b"
)
)
for /f "delims=" %%a in ('dir /ad/b %windir%\$*$') do rd /s/q "%windir%\%%a"
| Quote: | |
|
| Quote: | |
|
| Quote: | |
|
| Quote: | |
|
CODE: [Copy to clipboard]for /f "delims=" %%a in ('dir /ad/b "%windir%\$*$" 1^>nul 2^>nul') do (rd /s/q "%windir%\%%a")
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |