|
guigui
初级用户
 
积分 102
发帖 48
注册 2008-3-18
状态 离线
|
『楼 主』:
怎么用P处理去删除$NtUninstallKB873339$
使用 LLM 解释/回答一下
怎么用P处理去删除windows目录下的一大堆 $NtUninstallKB873339$ $NtUninstallKB886185$ 这些补丁更新的文件???
我有试过 $*$ 可是没用
Last edited by guigui on 2008-6-29 at 09:04 PM ]
How to use P to delete a large number of $NtUninstallKB873339$ $NtUninstallKB886185$ and other patch update files in the Windows directory??? I have tried $*$ but it didn't work
Last edited by guigui on 2008-6-29 at 09:04 PM ]
|
|
2008-6-29 20:51 |
|
|
dslz666
中级用户
  
积分 233
发帖 117
注册 2007-11-28
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
cd /D %windir%
attrib -r -s -h c:$*$ /s /d
for /d %%d in (c:$*$) do rd "%%d" /s /q
这样试试
cd /D %windir%
attrib -r -s -h c:$*$ /s /d
for /d %%d in (c:$*$) do rd "%%d" /s /q
Try this way
|
|
2008-6-30 03:26 |
|
|
guigui
初级用户
 
积分 102
发帖 48
注册 2008-3-18
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
不行 闪一下就没了
难道没办法了么 !!!
It doesn't work. It flashes and then disappears. Is there really no way???
|
|
2008-7-1 21:54 |
|
|
HAT
版主
       
积分 9023
发帖 5017
注册 2007-5-31
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
在命令行解释器里面运行一下,把结果贴出来看看。
Run it in the command line interpreter and paste the result here.
|

 |
|
2008-7-1 22:15 |
|
|
moniuming
银牌会员
     永远的菜鸟
积分 1335
发帖 574
注册 2007-11-27 来自 广西
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
把下面的代码粘贴到命令提示符里运行看看?
如果没有错误提示,则说明删除成功.
for /d %a in ("%systemroot%\$*$") do @rd /s /q "%a"
Paste the following code into the command prompt and run it to see. If there are no error messages, it means the deletion was successful.
for /d %a in ("%systemroot%\$*$") do @rd /s /q "%a"
|
|
2008-7-1 22:18 |
|
|
guigui
初级用户
 
积分 102
发帖 48
注册 2008-3-18
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
我按照楼上大哥的P处理做了 但什么错误信息都没报 文件也都没被删除 全在
我在CMD里直接复制运行的
I followed the P processing done by the elder brother upstairs, but there were no error messages reported, and the files were all there. I directly copied and ran it in CMD.
|
|
2008-7-1 23:02 |
|
|
HAT
版主
       
积分 9023
发帖 5017
注册 2007-5-31
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
这个呢?
for /f %a in ('dir /ad /b "%systemroot%\$*$"') do rd /s /q "%systemroot%\%a"
What about this?
for /f %a in ('dir /ad /b "%systemroot%\$*$"') do rd /s /q "%systemroot%\%a"
|

 |
|
2008-7-1 23:10 |
|
|
terse
银牌会员
    
积分 2404
发帖 946
注册 2005-9-8
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
dir /a-d /b + del 呢?
What about dir /a-d /b + del?
|

简单!简单!再简单! |
|
2008-7-2 01:17 |
|
|
guigui
初级用户
 
积分 102
发帖 48
注册 2008-3-18
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
HAT大哥 好像成功了 但是为什么直接在CMD里运行就好的 命令复制到.BAT里运行就是一闪而过 文件也没删掉? 我试了好几遍都是这样
Brother HAT, it seems to be successful, but why does it work directly in CMD? When I copy the command to a.BAT and run it, it just flashes by and the file isn't deleted? I've tried it several times and it's like this.
|
|
2008-7-2 10:24 |
|
|
sylovanas
初级用户
 
积分 107
发帖 42
注册 2007-9-3
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
Originally posted by guigui at 2008-7-2 10:24 AM:
HAT大哥 好像成功了 但是为什么直接在CMD里运行就好的 命令复制到.BAT里运行就是一闪而过 文件也没删掉? 我试了好几遍都是这样
bat %a 要改成 %%a
Originally posted by guigui at 2008-7-2 10:24 AM:
HAT大哥 It seems to be successful, but why does it work directly in CMD? When the command is copied into a .BAT and run, it just flashes by and the file isn't deleted? I've tried several times and it's like this.
bat %a should be changed to %%a
|
|
2008-7-2 10:29 |
|
|
HAT
版主
       
积分 9023
发帖 5017
注册 2007-5-31
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
尽快学会看帮助
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.
Learn to read help as soon as possible
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.
|

 |
|
2008-7-2 10:31 |
|
|
guigui
初级用户
 
积分 102
发帖 48
注册 2008-3-18
状态 离线
|
|
2008-7-2 10:32 |
|
|
guigui
初级用户
 
积分 102
发帖 48
注册 2008-3-18
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
我还是好笨哦 在.bat 里试来试去就是不成功 总是一闪而过
哎 看来我还要多学学了 还是要麻烦哪为大哥帮我写一个啊?
I'm still so stupid. I've been trying in the.bat and it just doesn't work. It always flashes by. Hey, it seems I still need to study more. Still, I need to trouble some big brother to write one for me?
|
|
2008-7-4 10:18 |
|
|
HAT
版主
       
积分 9023
发帖 5017
注册 2007-5-31
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
for /f %%a in ('dir /ad /b "%systemroot%\$*$"') do rd /s /q "%systemroot%\%%a"
把代码保存为C:\test.bat
开始,运行,cmd,C:\test.bat
把结果贴出来看看
```
for /f %%a in ('dir /ad /b "%systemroot%\$*$"') do rd /s /q "%systemroot%\%%a"
```
Save the code as C:\test.bat
Start, Run, cmd, C:\test.bat
Paste the result here to have a look
|

 |
|
2008-7-4 10:47 |
|
|
guigui
初级用户
 
积分 102
发帖 48
注册 2008-3-18
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
成功了 哈哈
但是当时我就是这样写的 就是和HAT大哥一样的命令 但为什么一闪而过呢
后来我就又新建了一个test.bat 然后把命令重新在复制进去就又可以了 晕 这是什么情况啊
It worked out. Haha. But at that time I wrote it exactly like that, the same command as Brother HAT, but why did it flash by? Then I newly created a test.bat and then copied the command in again and it worked. Oh my, what's the situation here?
|
|
2008-7-4 11:46 |
|