Just something I've been using lately that I think people here would
benefit from. This is a batch file that I run on many of my pc's
within my network. Save this code in a text file and change the
extension to .bat. I hope you find this useful.
Rem ****************** Code Starts***********************
@echo off
cls
title Clean My PC for XP By Matt Bramer
Rem You are free to use this however you want. Modify the code to
whatever suits your needs.
color 0E
echo Start Time is: %time%
Rem ********* Delete Temporary Internet Files: ****
Rem RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8
Rem ********* Delete Cookies: *********************
Rem RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2
Rem ********* Delete History: *********************
Rem RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1
Rem ********* Delete Form Data: *******************
Rem RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16
Rem ********* Delete Passwords: *******************
Rem RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32
Rem ********* Remove All IE Cached Data ***********
Rem RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255
Echo ********* Removing All Temp Files and Cookies for IE
*************
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351
Echo.
Echo Removal of All Temp Files and Cookies for IE has Completed!
Echo.
Echo.
Echo.
Echo ********* Removing PC Temporary Files **********
rmdir /S /Q "%userprofile%\Local Settings\Temp" 2>Nul
mkdir "%userprofile%\Local Settings\Temp" 2>Nul
rmdir /S /Q %windir%\Temp 2>Nul
mkdir %windir%\Temp 2>Nul
c:\windows\system32\cleanmgr.exe /dc /sagerun: 1
Echo.
Echo Removal of PC Temporary Files has Completed!
Echo.
Echo.
Echo.
Echo ********* Defragging Hard Drive **************
defrag C: -f -v
GOTO End
:End
Echo Geeks have just cleaned your PC for free... Be thankful!
Echo Finish Time is: %time%
Pause
exit
Rem ****************** Code Ends***********************
Regards,
Matt
www.crossloop.com/matthewbramer