I need to write VBA Code to delete some files that are have security permissions set for administrators and specific users. I need to be able to write either a KILL sub or a .DeleteFile sub that will only delete those files for the current user [environ("Username")]...
Any suggestions?
Here is what I have so far but it won't work because there are files secured by multiple users...
Any suggestions?
Here is what I have so far but it won't work because there are files secured by multiple users...
Code:
With New FileSystemObject
.DeleteFile ("C:\MHP\TEMP\R5_*.TXT")
End With