Access to the path is denied

faydaz

New member
Joined
Mar 10, 2003
Messages
1
Location
Nottingham
When using
Dim di As New DirectoryInfo("c:\documents and settings")

To build a directory structure that I then search the subdirectorys inside the above looking for a file "delthis"
on finding the said file the program then deletes the subdirectory.
This works fine untill the directory contains either
"My Documents" or "Favorites" directorys then I get an error

Access to the path "clarked\My Documents" is denied

clarked is the current subdirectory where the error appeared.
These subdirectorys are user profiles for the previous uses which are shipped down at logon.


Any Idea what is happerning or a solution would be greatfully.

Thanks
 
Back
Top