Whether for the sake of computer performance or data security considerations, we often need to clear the browser's history, including browser caching, recorded cookies, history, passwords, and so on. Generally speaking, in IE7 (Internet Explorer 7), the operation is done through the delete browsing history in the General tab of Internet Options, but objectively speaking, such an operation takes several steps and is often clearly inefficient.
If you need to do something like this frequently, consider setting up a desktop shortcut directly for the appropriate operation, as long as you need one click.
The following is a description of the commands used to clear the IE7 browsing history operation, either by creating the appropriate shortcuts or by running them directly on the command line.
These commands apply to IE7 running in Windows Vista and Windows XP.
Clear Internet Temporary files
RunDll32.exe Inetcpl.cpl,clearmytracksbyprocess 8
Remove cookies
RunDll32.exe inetcpl.cpl,clearmytracksbyprocess 2
Purge history
RunDll32.exe inetcpl.cpl,clearmytracksbyprocess 1
Clear form data
RunDll32.exe inetcpl.cpl,clearmytracksbyprocess 16
Clear password
RunDll32.exe Inetcpl.cpl,clearmytracksbyprocess 32
Clear all of the above items
RunDll32.exe inetcpl.cpl,clearmytracksbyprocess 255
Clear all of the above items and the various data saved by the add-in used in IE7
RunDll32.exe inetcpl.cpl,clearmytracksbyprocess 4351