Results 1 to 8 of 8

Thread: Cookie Deleter : Runtime Error 70 : Permission Denied

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2004
    Location
    UK
    Posts
    119

    Resolved 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
    Last edited by Shadows; Oct 26th, 2004 at 07:41 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width