使用VBScript删除浏览器(IE)缓存和cookie

时间:2015-02-12 18:40:41

标签: cookies vbscript

我需要帮助删除使用VBScript的浏览器cookie和缓存..我已尝试过各种博客的许多方法,但发现没用..

提前致谢!

1 个答案:

答案 0 :(得分:4)

Set WshShell = CreateObject("WScript.Shell")
WshShell.run "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8"

'To clear browsing cookies
WshShell.run "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2"

'To Clear Browsing History
WshShell.run "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1"

试试。