从命令行清除IE7浏览历史记录
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.
如果要构建批处理文件以在计算机上自动进行清理,则可能需要在批处理脚本中至少包含以下命令之一。 您可以自动执行Internet Explorer 7“删除浏览历史记录”对话框中的任何一项功能。
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.
这是与不同按钮对应的命令。 从清理的角度来看,最重要的是第一个,它将仅删除使计算机混乱的临时Internet文件。
To use these commands, just run them from the command line, the start menu search box in vista, or a batch file.
要使用这些命令,只需从命令行,vista中的“开始”菜单搜索框或批处理文件中运行它们。
Temporary Internet Files
临时网络文件
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8
Cookies
饼干
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2
History
历史
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1
Form Data
表格数据
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16
Passwords
密码
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32
Delete All
删除所有
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255
Delete All – “Also delete files and settings stored by add-ons”
全部删除–“还删除附件存储的文件和设置”
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351
These commands should work in Internet Explorer 7 on XP or on Windows Vista.
这些命令应在XP或Windows Vista上的Internet Explorer 7中运行。
翻译自: https://www.howtogeek.com/howto/windows/clear-ie7-browsing-history-from-the-command-line/