fso.FolderExists Gives True but Access is Denied

J

Jonas

I am working with the below code. The result of the FolderExists line
is true. However, if I navigate to the folder via the windows
explorer I get a message that says access denied. I can't figure out
why the result of FolderExists is true. Why is this? I want it to be
false. Is there something else that I can use outside of the
FileSystemObject object that will give me a value if the folder can
be accessed?



Sub testingfolderexists()
Dim fso As New FileSystemObject
Dim fols As Folders

MsgBox fso.FolderExists("C:\Documents and Settings\Administrator
\")


End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top