Delete $NtUninstall* folders

L

Luis

Hi all,

Is there a way to delete the $NtUninstall* folders using the command prompt?

I need it to create a batch file to do that.

Thanks!
 
D

DrewEh

ha, be careful.
I did this to try to clean up disk space. I was unable to remove
software afterwards. And other wierd things started to happen (cant
remember)
 
J

ju.c

Here is a batch file that will do that:
(Change "C:" if necessary)

----------copy-inside-only----------
@echo off
for /d %%a in (C:\WINDOWS\$NtUninst*) do rd /s /q "%%a"
pause

----------copy-inside-only----------


ju.c
 
J

John John - MVP

Using the %windir% or %systemroot% variable will take care of the drive
letter and Windows directory.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top