Cookie Deleter : Runtime Error 70 : Permission Denied
hello, I'm having a frustrating problem. I'm fairly new to VB...
Info >> Cookie Deleter
Runtime Error >> 70
Comment >> Permission Denied
I'm attempting to write a program that deletes all cookies from my hard drive, yesterday it was working however when I compiled it, it isnt, now im back at the code and it aint working anymore so I really need help cause I dunno any other methods or I'm maybe missing something.
Code:
'On Error Resume Next
Dim LOGONNAME As String
LOGONNAME = Text2.Text
If Text2.Text = "Your Windows Log On Name" Then
MsgBox "You Need To Specify An Windows Logon Name", vbExclamation, "Error"
Else
Kill ("C:\Documents and Settings\" & LOGONNAME & "\Cookies\*.*") 'delete all cookies with wildcard
MsgBox "All Cookies Were Successfully Deleted!", vbInformation, "Successful Deletion"
End If
note: I commented out on error resume next to correct this problem, usually I would have this in to stop it closing upon error however I having trouble fixing this problem, please help, any input welcome, ty