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.
 
Back
Top