Saturday, December 06, 2008

Clean Internet Explorer with a batch script.

This script is very useful to clean Internet Explorer Temporary files.

Instructions:
Copy the following code into a normal text file, but save it with .bat extension.
Example:
I open notepad paste this code there and save as clean.bat .

When i say .bat extension i mean to turn file.txt into clean.bat .
It doesn't matter choose a different name but i believe some names can't be used because the cmd interpreter reads the name of the file that is called to run and sometimes get into confusion if the script as name of windows command ( Ex: you couldn't name it dir.bat).
If you can't change a file extension you will need to go to -> my computer -> (on the top bar) Tools -> Folder Options and here select View tab and here uncheck Hide extensions for known file types.

@ECHO OFF
ECHO Deleting current user's Temporary Files, Cookies, History, Form Data and Stored Passwords
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255
ECHO Done!
PAUSE
CLS



See ya!
Happy End of 2008 for all.

No comments: