Validate UNC Path

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone know how to validate a UNC path?

I am currently using:
Directory.Exists (szUncPath)

This works if the path is located on my machine. However, if the path is
for another machine (on the network), this method fails.

Any suggestions on how to get this to work or aternative ways to
programmatically validate a UNC path would be greatly appreciated.

cheers,
Ollie
 
Does anyone know how to validate a UNC path?

I am currently using:
Directory.Exists (szUncPath)

This works if the path is located on my machine. However, if
the path is for another machine (on the network), this method
fails.

Any suggestions on how to get this to work or aternative ways to
programmatically validate a UNC path would be greatly
appreciated.

Ollie,

Do you have read permissions on the UNC path? If not,
Directory.Exists() will return false.
 

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

Back
Top