怎么用P处理去删除windows目录下的一大堆 $NtUninstallKB873339$ $NtUninstallKB886185$ 这些补丁更新的文件???
我有试过 $*$ 可是没用
[ Last edited by guigui on 2008-6-29 at 09:04 PM ]
我有试过 $*$ 可是没用
[ Last edited by guigui on 2008-6-29 at 09:04 PM ]
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
for /d %a in ("%systemroot%\$*$") do @rd /s /q "%a"for /f %a in ('dir /ad /b "%systemroot%\$*$"') do rd /s /q "%systemroot%\%a"
Originally posted by guigui at 2008-7-2 10:24 AM:
HAT大哥 好像成功了 但是为什么直接在CMD里运行就好的 命令复制到.BAT里运行就是一闪而过 文件也没删掉? 我试了好几遍都是这样
Microsoft Windows XP
(C) Copyright 1985-2001 Microsoft Corp.
C:\Test>for /?
Runs a specified command for each file in a set of files.
FOR %variable IN (set) DO command
%variable Specifies a single letter replaceable parameter.
(set) Specifies a set of one or more files. Wildcards may be used.
command Specifies the command to carry out for each file.
command-parameters
Specifies parameters or switches for the specified command.
To use the FOR command in a batch program, specify %%variable instead
of %variable. Variable names are case sensitive, so %i is different
from %I.
for /f %%a in ('dir /ad /b "%systemroot%\$*$"') do rd /s /q "%systemroot%\%%a"