|
-
Oct 5th, 2002, 08:43 AM
#1
Thread Starter
Fanatic Member
deleting interntet History[Kinda resolved]
if I trie this code:
VB Code:
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
Dim fldr
Set fldr = fso.GetFolder("C:\Documents and Settings\Administrator\Local Settings\geschiedenis\history.IE5")
Dim subFldr
For Each subFldr In fldr.subfolders
MsgBox subFldr
subFldr.Delete
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.
-
Oct 5th, 2002, 08:50 AM
#2
Thread Starter
Fanatic Member
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.
-
Oct 5th, 2002, 08:52 AM
#3
PowerPoster
Actually, the folder contains few sub folders too. You will have to delete files in these folders too.
-
Oct 5th, 2002, 08:53 AM
#4
Thread Starter
Fanatic Member
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.
-
Oct 5th, 2002, 08:56 AM
#5
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|