Created
February 16, 2022 16:43
-
-
Save michaelbarkdoll/6fe0e2f10cbd0df155961e8b52609b2d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Const TEMPORARY_INTERNET_FILES = &H20& | |
Set objShell = CreateObject(“Shell.Application”) | |
Set objFolder = objShell.Namespace(TEMPORARY_INTERNET_FILES) | |
Set objFolderItem = objFolder.Self | |
strPath = objFolderItem.Path & “\*.*” | |
Set objFSO = CreateObject(“Scripting.FileSystemObject”) | |
objFSO.DeleteFile(strPath) | |
Const COOKIES = &H21& | |
Set objShell = CreateObject(“Shell.Application”) | |
Set objFolder = objShell.Namespace(COOKIES) | |
Set objFolderItem = objFolder.Self | |
strPath = objFolderItem.Path & “\*.*” | |
Set objFSO = CreateObject(“Scripting.FileSystemObject”) | |
objFSO.DeleteFile(strPath) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment