Skip to content

Instantly share code, notes, and snippets.

@nordineb
Created July 11, 2018 08:15
Show Gist options
  • Save nordineb/3f163939fdc017caa9a9474783735161 to your computer and use it in GitHub Desktop.
Save nordineb/3f163939fdc017caa9a9474783735161 to your computer and use it in GitHub Desktop.
Clear Temporary Internet Files
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess <number>

The parameter is required and is derived from some combination of the following values, represented as a decimal 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

Add values together to get aggregate functionality. For example '4' is deleting all temporary internet files and '260' is doing the same without the dialog being displayed while it purges.

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 260
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment