PC Review


Reply
Thread Tools Rate Thread

How to remove all $NTUninstall......$ dirs?

 
 
RD_BTW_EARS
Guest
Posts: n/a
 
      1st Oct 2003
Hi!

I can't figure out how to remove all $NTUninstall....$
directories with all files and sub-directories using ie RD
command with wildcard.
There are up to 30 of those due to SUS Server running ½
year and I would like to make a simple batch file run upon
logon to save some space on those small HDD's.
No high-tech requirements on the batch file - I'll run
it "manually" when I consider needed ;P

Thanks
RD_BTW_EARS

 
Reply With Quote
 
 
 
 
Ritchie
Guest
Posts: n/a
 
      1st Oct 2003
"RD_BTW_EARS" <(E-Mail Removed)> wrote in message news:1ac8c01c387de$ede911f0$(E-Mail Removed)...
I can't figure out how to remove all $NTUninstall....$
directories with all files and sub-directories using ie RD

This worked for me:-

rd /s /q $ntservicepackuninstall$

You might also want to delete this registry key:-

HKEY_LOCAL_MACHINE\
SOFTWARE\
Microsoft\
Windows\
CurrentVersion\
Uninstall\
Windows 2000 Service Pack

--
Ritchie, undo for mail


 
Reply With Quote
 
RD_BTW_EARS
Guest
Posts: n/a
 
      1st Oct 2003
Hi Ritchie - and thanks for your answer!

Your solution removes *only* SP Uninstall directory.
That's OK. But what about the 29 (more or less) other
Uninstall directories created by the critical security
patches?
Still looking for wildcard option for those
$NTUninstall......$ dirs!

Cheers
RD_BTW_EARS

PS Good point about the registery keys....


>This worked for me:-
>
> rd /s /q $ntservicepackuninstall$
>
>You might also want to delete this registry key:-
>
> HKEY_LOCAL_MACHINE\
> SOFTWARE\
> Microsoft\
> Windows\
> CurrentVersion\
> Uninstall\
> Windows 2000 Service Pack
>
>--
>Ritchie, undo for mail
>
>
>.
>

 
Reply With Quote
 
Ritchie
Guest
Posts: n/a
 
      1st Oct 2003
"RD_BTW_EARS" <(E-Mail Removed)> wrote in message news:0f9801c387e6$8e03d6f0$(E-Mail Removed)...
> Still looking for wildcard option for those
> $NTUninstall......$ dirs!


How about:-

for /f "delims=" %%a in ('dir/ad/b %systemroot%\$NtUninstall*') do (
rd /s /q "%%a"
)

--
Ritchie, undo for mail


 
Reply With Quote
 
Ritchie
Guest
Posts: n/a
 
      1st Oct 2003
"Ritchie" <(E-Mail Removed)> wrote in message news:bldtgh$at89g$(E-Mail Removed)...
> rd /s /q "%%a"


Make that:-

for /f "delims=" %%a in ('dir/ad/b %systemroot%\$NtUninstall*') do (
rd /s /q "%systemroot%\%%a"
)

--
Ritchie, undo for mail


 
Reply With Quote
 
RD_BTW_EARS
Guest
Posts: n/a
 
      1st Oct 2003
Hi Ritchie!

// I'm back again, just had a 2½ hours nap - long days
makes you do funny things )

THANKS! This does the job. Perfect.

Have a nice day - you made my day shine!
RD_BTW_EARS


>Make that:-
>
> for /f "delims=" %%a in ('dir/ad/b %systemroot%

\$NtUninstall*') do (
> rd /s /q "%systemroot%\%%a"
> )
>
>--
>Ritchie, undo for mail
>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove old $NTUninstall...$ temporary files? FMac Microsoft Windows 2000 Windows Updates 2 12th Oct 2005 09:23 PM
Is it safe to remove $NtUninstall files? Connor T Windows XP General 9 17th Jul 2005 02:08 PM
$ntUninstall dir - OK to remove? XPHomey Windows XP Performance 2 4th Apr 2004 09:06 PM
remove $NTuninstall* folders ANTONY Microsoft Windows 2000 Setup 1 9th Nov 2003 02:47 PM
Can I remove $NtUninstall and $NtServicePackUninstall folders? Christian Microsoft Windows 2000 Windows Updates 1 27th Aug 2003 06:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:56 PM.