Go Back   PCMech Forums > Windows Support > Windows Legacy Support (XP and earlier)

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 06-16-2005, 01:12 PM   #1
Member (7 bit)
 
Join Date: May 2003
Posts: 99
Temp folders cleanup

What is a quick and painless way to clean out your TMP and useless files from the following locations on XP?

1. C:\temp
2. C:\WINDOWS\Temp
3. C:\WINDOWS\Temporary Internet Files
4. C:\Documents and Settings\"username"\Local Settings\Temp
5. C:\Documents and Settings\"username"\Local Settings\History
6. C:\Documents and Settings\"username"\Local Settings\Temporary Internet Files
7. C:\Documents and Settings\"username"\Application Data\Microsoft\Office\Recent

including any other folders I may have missed, I clean out these folders on a regular basis for our users and need a simple tool to save time. Thanks.
scj6771 is offline   Reply With Quote
Old 06-16-2005, 03:10 PM   #2
Ride 'em Cowboy
 
EzyStvy's Avatar
 
Join Date: Dec 1999
Location: Dallas, Tx
Posts: 9,109
The built in Disk CLeanup will zap most of your list.

Your #1 is a user made folder and would have to be cleaned manually or via a batch file.

Have never seen #3 on an XP machine.
__________________
Stand Up 2 Cancer - SU2C
EzyStvy is offline   Reply With Quote
Old 06-16-2005, 03:12 PM   #3
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
The quickest way to do that is to set up a batch file that will delete all the files in those directories. If you want, you can then set up a scheduled task to run that file on a predetermined schedule.
doctorgonzo is offline   Reply With Quote
Old 06-16-2005, 04:26 PM   #4
Member (2 bit)
 
Join Date: Jun 2005
Posts: 3
Temp folders cleanup

Once or twice a week I use this grouping in my Search engine to do a rather complete cleanup:

*.tmp,~*.*,*.chk

and delete most of what's found.
joempa
joempa is offline   Reply With Quote
Old 06-25-2005, 09:40 AM   #5
Member (6 bit)
 
Join Date: May 2005
Location: Sydney Australia
Posts: 54
crap cleaner freeware
jollyjohn is offline   Reply With Quote
Old 09-21-2006, 03:35 PM   #6
Member (8 bit)
 
bobby-jo's Avatar
 
Join Date: Feb 2004
Posts: 153
Quote:
Originally Posted by doctorgonzo
The quickest way to do that is to set up a batch file that will delete all the files in those directories. If you want, you can then set up a scheduled task to run that file on a predetermined schedule.
How would you create the batch file you mentioned above? (I dont know too much about this sort of thing.)
bobby-jo is offline   Reply With Quote
Old 09-21-2006, 03:44 PM   #7
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
Create a new text file with a BAT extension (like CLEANUP.BAT) and put this in it:

Code:
del /f /s /q C:\temp\*.*
del /f /s /q C:\WINDOWS\Temp\*.*
del /f /s /q "C:\WINDOWS\Temporary Internet Files\*.*"
del /f /s /q "C:\Documents and Settings\username\Local Settings\Temp\*.*"
del /f /s /q "C:\Documents and Settings\username\Local Settings\History\*.*"
del /f /s /q "C:\Documents and Settings\username\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "C:\Documents and Settings\username\Application Data\Microsoft\Office\Recent\*.*"
Be careful, as the "del /s /f /q" command recursively deletes everything without asking if you are sure!
doctorgonzo is offline   Reply With Quote
Old 09-21-2006, 04:03 PM   #8
Member (8 bit)
 
bobby-jo's Avatar
 
Join Date: Feb 2004
Posts: 153
Cheers!

Is there anyother temp folders that it is safe to manually delete the files from?
I did the search joempa said he does and found 600 or more files, ran the MS disk cleanup wizard, ran the search again and still came back with all 600-odd results again.
bobby-jo is offline   Reply With Quote
Old 09-21-2006, 04:05 PM   #9
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
Some applications have their own temp directories. For example, Firefox has a cache directory where it stores its cache. Since it all depends on the programs you have, there are no hard-and-fast rules.
doctorgonzo is offline   Reply With Quote
Old 09-21-2006, 04:06 PM   #10
Shiro Usagi
Premium Member
 
Cricket's Avatar
 
Join Date: Sep 1999
Location: Kaneohe, Hawaii
Posts: 34,002
For disk cleanup duties I just use CCleaner.

Cricket
Cricket is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes 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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:39 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2