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