ClearMyTracksByProcess-所有选项?

ClearMyTracksByProcess-所有选项?

我在互联网上看到了 ClearMyTracksByProcess 的值列表

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

Delete Cookies:
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2

Delete History:
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1

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

Delete Passwords:
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32

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

Delete All + files and settings stored by Add-ons:
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351

但这并不是所有选项的完整列表,而且我似乎找不到完整的列表(我不确定是否没有发布完整的列表,或者这个列表已被重新发布了太多次并且占据了所有的搜索结果)。

我想要做的是删除 Cookies + Temp + 附加组件,但保留历史记录、表单数据和密码。有人找到所有可用选项的完整列表吗?或者只是附加组件的选项,这样我可以自己算一下?(例如附加组件值 + 8 + 2 = 我要找的答案)

感谢您看我的问题!

答案1

Selenium IEDriver 源

// This magic value is the combination of the following bitflags:
// #define CLEAR_HISTORY         0x0001 // Clears history
// #define CLEAR_COOKIES         0x0002 // Clears cookies
// #define CLEAR_CACHE           0x0004 // Clears Temporary Internet Files folder
// #define CLEAR_CACHE_ALL       0x0008 // Clears offline favorites and download history
// #define CLEAR_FORM_DATA       0x0010 // Clears saved form data for form auto-fill-in
// #define CLEAR_PASSWORDS       0x0020 // Clears passwords saved for websites
// #define CLEAR_PHISHING_FILTER 0x0040 // Clears phishing filter data
// #define CLEAR_RECOVERY_DATA   0x0080 // Clears webpage recovery data
// #define CLEAR_PRIVACY_ADVISOR 0x0800 // Clears tracking data
// #define CLEAR_SHOW_NO_GUI     0x0100 // Do not show a GUI when running the cache clearing
//
// Bitflags available but not used in this magic value are as follows:
// #define CLEAR_USE_NO_THREAD      0x0200 // Do not use multithreading for deletion
// #define CLEAR_PRIVATE_CACHE      0x0400 // Valid only when browser is in private browsing mode
// #define CLEAR_DELETE_ALL         0x1000 // Deletes data stored by add-ons
// #define CLEAR_PRESERVE_FAVORITES 0x2000 // Preserves cached data for "favorite" websites
#define CLEAR_CACHE_OPTIONS 0x09FF

winaero.com/blog

// Delete only download history    
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16384

答案2

我知道这个问题之前已经得到解答了,但我认为我的帖子可能会让那些像我一样发现这个问题的人更容易理解。

以下内容可以从 CMD 或脚本中运行(我测试了 Batch 和 VBS)。参数“ClearMyTracksByProcess”在我的所有测试中都区分大小写。这可能因操作系统而异,除了 Windows 8.1 之外,我没有测试任何其他操作系统。

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess <number>

该参数是必需的,来自以下值的某种组合,以十进制数表示。

1    = Browsing History
2    = Cookies
4    = Temporary Internet Files
8    = Offline favorites and download history
16   = Form Data
32   = Passwords
64   = Phishing Filter Data
128  = Web page Recovery Data
256  = Do not Show GUI when running the cache clear
512  = Do not use Multi-threading for deletion
1024 = Valid only when browser is in private browsing mode
2048 = Tracking Data
4096 = Data stored by add-ons
8192 = Preserves Cached data for Favorite websites

将值相加以获得聚合功能。例如,“4”表示删除所有临时 Internet 文件,“260”表示执行相同操作,但在清除时不会显示对话框。

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 260

答案3

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess # 不会触及真正的缓存文件夹“Low”(这是受保护模式 IE 存储数据的位置)。如果不以低完整性级别运行,该命令将无效。请查看:https://stackoverflow.com/questions/33447236/how-can-i-delete-internet-explorer-cookies-using-bat-script

相关内容