Friday, January 21, 2011

Quickly and selectively clean up your Internet Explorer cache

While testing GWT applications it is sometimes necessary to clean up your entire cache. Firefox has simple shortcut keys to achieve this, but IE does not. Especially IE7. (Yes we have to support IE7 as the lowest version)

Here is a quick way to do it. You can run this from a command prompt, or a batch file or simply from the 'Run' menu which pops up when you click Run from the Start menu.

#To clear IE7 temporary Internet files 
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8

#To clear IE7 browsing cookies 
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2

#To clear IE7 browsing history 
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1

#To clear IE7 form data 
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16

#To clear IE7 remembered passwords for filling web login forms 
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32

#To clear or delete all IE7 browsing history i.e all of the above! 
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255