Tuesday, May 19, 2009

Clear IE7 Browsing History From the Command Line


If you like to build batch files to automate cleanup on your computer, you'll probably want to include at least one of these commands in your batch script. You can automate any one of the functions on the Internet Explorer 7 Delete Browsing History dialog.

Here's the dialog that you are probably used to seeing:



And here's the commands that correspond to the different buttons. The most important one from a cleanup perspective is the first, which will delete just the temporary internet files that are cluttering up your computer.

To use these commands, just run them from the command line, the start menu search box in vista, or a batch file.

Temporary Internet Files :
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8

Cookies :
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2

History :
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1

Form Data:
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16

Passwords :
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32

Delete All :
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255

Delete All - "Also delete files and settings stored by add-ons" :
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351

These commands should work in Internet Explorer 7 on XP or on Windows Vista.


No comments:

Post a Comment