Most of the time, whether for the sake of computer performance or data security considerations, we often need to promptly 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. Therefore, if you need to do something like this frequently, consider setting up a desktop shortcut directly for the appropriate operation, so that you can click it if you want.
The following is a description of the commands used to clear the IE7 browsing history operation, and you can follow the instructions to create the appropriate shortcuts, or run them directly on the command line:
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
Note: The above command applies not only to IE7 in Windows Vista, but also to IE7 running in Windows XP.