www.ComputerVitals.com
 
       

Go Back   ComputerVitals > Computer help and discussion > Computer Mods & Tech Tips

 
 
Share Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old August 3rd, 2005, 09:44 AM   #1
Guest
 
Posts: n/a
Clean Temp files automaticlly

Platform: Windows XP

This will clean up all temp files from users upon boot up.
You will need one file to add to your system. Deltree.exe If you can't find this file on the net, send me a PM and I will send you this file.


Lets make the cleanup file.
Open up Notepad and copy the text in the code below.
Code:
cd\

:Local service
DELTREE.exe /y "C:\Docume~1\LocalS~1\LocalS~1\Tempor~1" > NUL
DELTREE.exe /y "C:\Docume~1\LocalS~1\LocalS~1\Temp\*.*" > NUL
DELTREE.exe /y "C:\\Docume~1\LocalS~1\LocalS~1\Tempor~1\Content.IE5" > NUL

:username cleanup
DELTREE.exe /y "C:\Docume~1\username\LocalS~1\Temp\*.*" > NUL
DELTREE.exe /y "C:\Docume~1\username\LocalS~1\History\*.*" > NUL
DELTREE.exe /y "C:\Docume~1\username\LocalS~1\Tempor~1\*.*" > NUL
DELTREE.exe /y "C:\Docume~1\username\NetHood\*.*" > NUL
DELTREE.exe /y "C:\Docume~1\username\Recent\*.*" > NUL
DELTREE.exe /y "C:\Docume~1\username\Cookies\*.*" > NUL
Now change the "username" to your username that you want cleaned.
If you have more than one user account copy the block that is under :username cleanup and paste it
under the existing and replace with the 2nd username.

Once you have pasted and edited this file to your liking, save it as cleanup.bat. Save this file to your c:\Windows\System32

XP Pro users.
Lets make this run before windows starts.
Click, "Start" "Run" type gpedit.msc

navigate to:
Computer Configuration >>> Windows Settings >>> Scripts (startup/Shutdown)
Then double click on the Start up in the right hand pane.
Click on the "Add" button, Then the "Browse" Navigate to c:\windows\system32\cleanup.bat
Select that file, Click "OK" Click "Apply" then "OK"

You can now exit the Groups Policies.


XP HOME USERS:
You dont have Group Policy editor so we'll attack this a different way.

Click on: "Start" "Run" type regedit
Navigate to:
Code:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Right click in the right pane and select "New" String name it Cleanup then right click and go to Modify.
enter the path to the Cleanup.bat c:\windows\system32\cleanup.bat

Your all set.

Notes:
Every time you start your computer the cleanup script will run and clear out all temporary files.
If you wish to do this manually simply click the "Start button", "run" and type cleanup. You'll see a box pop
up and the script will run and close.

Mozilla FireFox cleaning comming soon.

If this is too advanced for you send me an PM and I will send you a link where you can download these files
 
 

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Digital Video Formats Guide Monkey Software Reviews & Guides 0 July 28th, 2006 05:13 PM
Defrag not working? BuzzStPoint Operating Systems 15 March 6th, 2006 07:49 AM
All jpg files have no header The Unknown Computer Software 7 November 30th, 2005 09:47 AM
Clean the index.dat files on every boot The Unknown Computer Mods & Tech Tips 0 September 26th, 2005 04:40 PM
Clean the hidden devices from device manager The Unknown Computer Mods & Tech Tips 0 September 18th, 2005 02:34 PM


All times are GMT -5. The time now is 06:47 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.