Results 1 to 5 of 5

Thread: deleting interntet History[Kinda resolved]

  1. #1

    Thread Starter
    Fanatic Member robbedaya's Avatar
    Join Date
    Jul 2002
    Location
    Belgium
    Posts
    872

    deleting interntet History[Kinda resolved]

    if I trie this code:
    VB Code:
    1. Dim fso
    2. Set fso = CreateObject("Scripting.FileSystemObject")
    3. Dim fldr
    4. Set fldr = fso.GetFolder("C:\Documents and Settings\Administrator\Local Settings\geschiedenis\history.IE5")
    5. Dim subFldr
    6.  
    7. For Each subFldr In fldr.subfolders
    8.     MsgBox subFldr
    9.     subFldr.Delete
    10. Next
    this error occurs:

    Run time Error '70'
    permission denied

    my folder for my history is "C:\Documents and Settings\Administrator\Local Settings\geschiedenis\history.IE5". I have a dutch version of Win2000.

    how can I solve this?
    Last edited by robbedaya; Sep 7th, 2003 at 03:46 AM.
    - Use the thread tools to Mark your Thread as Resolved when your question is answered.
    - Please Rate my answers if they where helpful.

  2. #2

    Thread Starter
    Fanatic Member robbedaya's Avatar
    Join Date
    Jul 2002
    Location
    Belgium
    Posts
    872
    If I use the exact same code, but with another folder, it does work
    - Use the thread tools to Mark your Thread as Resolved when your question is answered.
    - Please Rate my answers if they where helpful.

  3. #3
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Actually, the folder contains few sub folders too. You will have to delete files in these folders too.

  4. #4

    Thread Starter
    Fanatic Member robbedaya's Avatar
    Join Date
    Jul 2002
    Location
    Belgium
    Posts
    872
    if I only trie to delete the files in the folders/subfolders I get the same error.
    - Use the thread tools to Mark your Thread as Resolved when your question is answered.
    - Please Rate my answers if they where helpful.

  5. #5

    Thread Starter
    Fanatic Member robbedaya's Avatar
    Join Date
    Jul 2002
    Location
    Belgium
    Posts
    872
    I think i've solved it myself.

    I believe it isn possible because i'm logged in as administrator, when i tried to run it on the history of another user, it does work without problems
    - Use the thread tools to Mark your Thread as Resolved when your question is answered.
    - Please Rate my answers if they where helpful.

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