Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Batch file to really clean the c drive

Avatar of Erik Whiteway
Erik WhitewayFlag for Canada asked on
Windows XP
2 Comments1 Solution671 ViewsLast Modified:
I'm looking for a simple dos batch file to do the following (it can call VBS if needed):

1. delete the content of c:\temp
2. delete the content of c:\windows\temp
3. delete all the $ntuninstall...$ type files in c:\windows
4. (optional) go in to users profiles and delete temp files etc..
5. (optional) delete profiles that are over 1 yr old
6. run defrag

I can find / write scripts for 1,2,4,6 - but nothing that will deal with the $uninstall$ files.

I don't want to use MS diskclean up  - as it misses most of the files that are the issue.
I deally I don't want to use any external programs, just what is default in windows.

I know tons of people must have something like this - but I can't find any online.
Avatar of Member_2_921743
Member_2_921743Flag of United States of America image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answers