Here is updated code that deletes just a few more things and uses
system variables instead of hard-coded paths. ;-)
Feel free to use this just don't try to sell it b/c I didn't sell it
to you...

******************************
This is used for XP ONLY!
******************************

REM ********* UPDATED CODE ******************


@echo off
cls

title Windows XP Maintenance Menu by Matt Bramer COLOR 0E

echo Start Time is %time%

echo.
echo.

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

del /s /q "%userprofile%\Cookies" 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 %systemdrive% -f -v

echo.
echo.
echo.

GOTO End

Echo.
Echo.
Echo.

:End
Echo Geeks have just cleaned your PC for free... Be thankful!
Echo Finish Time is: %time%

Pause
exit

REM ************** CODE ENDS ***********************




*********************************
This is used for Vista ONLY!
*********************************

REM ************* CODE BEGINS *********************

@echo off
cls
title Clean My PC for Vista By Matt Bramer color 0E

echo Start Time is %time%

Echo.
Echo.

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 Temp Files are Complete!

Echo.
Echo.
Echo.


Echo ********* Removing PC Temporary Files **********
rmdir /S /Q %userprofile%\AppData\Local\Temp 2>Nul
mkdir %userprofile%\AppData\Local\Temp 2>Nul

del /s /q "%appdata%\Microsoft\Windows\Cookies" 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 Complete!

Echo.
Echo.
Echo.

Echo ********* Vista Defrag All Drives **************
defrag %systemdrive%  -w -f -v

GOTO End

:End

Echo.
Echo.

Echo Geeks have just cleaned your PC for free... Be thankful!
Echo Finish Time is: %time%

Pause
exit

REM ************ CODE ENDS ******************

You can control what you delete by adding REM in front of any line of
code.  When adding REM in front, that line of code doesn't run.  I
hope this helps.

Regards,
Matt
www.crossloop.com/matthewbramer
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Computer Tech Support" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/computer-tech-support?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to