network drive problem w/ System.IO.Directory.Exists

P

Peter O'Reilly

While using the .Net framework v 1.1 implementation of
System.IO.Directory.Exists(), it fails to recognize a mapped network drive.

This is true if the path specified uses a mapped drive letter or is
expressed as a UNC address. I have also tried the drive letter and UNC
paths with and without trailing backslashes, respectively. No luck.

I would suspect it is a security concern, but no exception is returned. For
all combinations, System.IO.Directory.Exists returns false.

I've double checked my typing of the path address and validated that
Directory.Exists() does work predictably well for local paths, e.g. c:\winnt
(and also discovered remote paths are not an issue with classic VBA).

Any help is appreciated. Thanks!
 

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