471,344 Members | 1,554 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,344 software developers and data experts.

How can I determine that the path exists?

If I have a path, for example \\server\FolderA", how can I make sure that
this path is accessible? There could be several reasons - server is down,
wrong folder spelling, permissions, etc..

There is File.Exists method but it only works with the files...

Thanks,

-Stan
Jul 21 '05 #1
2 4673
You could try System.IO.Directory.Exists.

HTH
Dan

"Stan" wrote:
If I have a path, for example \\server\FolderA", how can I make sure that
this path is accessible? There could be several reasons - server is down,
wrong folder spelling, permissions, etc..

There is File.Exists method but it only works with the files...

Thanks,

-Stan

Jul 21 '05 #2
Perhaps,

Directory.Exists?

Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Kamus of Kadizhar | last post: by
2 posts views Thread by OvErboRed | last post: by
7 posts views Thread by Stephen E. Weber | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.