Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
Credits 102 Posts 48 Joined 2008-03-18 23:42 18-year member UID 113352 Gender Male
Status Offline
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 ]
Credits 102 Posts 48 Joined 2008-03-18 23:42 18-year member UID 113352 Gender Male
Status Offline
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.
Credits 102 Posts 48 Joined 2008-03-18 23:42 18-year member UID 113352 Gender Male
Status Offline
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.
Credits 107 Posts 42 Joined 2007-09-03 16:43 18-year member UID 96475 Gender Male
Status Offline
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.
Credits 9,023 Posts 5,017 Joined 2007-05-31 19:39 19-year member UID 89899 Gender Male
Status Offline
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.
Credits 102 Posts 48 Joined 2008-03-18 23:42 18-year member UID 113352 Gender Male
Status Offline
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?
Credits 102 Posts 48 Joined 2008-03-18 23:42 18-year member UID 113352 Gender Male
Status Offline
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?