联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
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"
Originally posted by lxmxn at 2008-6-20 02:47 AM: 原因是%alldrive%这里使用有误,你的for命令并没有对每个磁盘进行遍历,因此失败,试试这个? [code] set alldrive=c d e f g h i for %%a in (%alldrive%) do ( f ...
Originally posted by ixxxxyou at 2008-6-20 04:47 PM: 这个没有权限的限制吧?
Originally posted by HAT at 2008-6-21 03:22 AM: set alldrive=c d e f g h i for %%a in (%alldrive%) do ( for /f "delims=" %%b in ('dir /ad/b %%a:\found.*') do ( rd /s /q "%%a:\%%b" ) ) f ...
for /f "delims=" %%a in ('dir /ad/b "%windir%\$*$" 1^>nul 2^>nul') do (rd /s/q "%windir%\%%a")
Originally posted by ixxxxyou at 2008-6-22 12:44 AM: 1^>nul 2^>nul中的1^和2^是什么意思啊?