We've run into an interesting situation that needs solving, and my searches have turned up nill. I therefore appeal to the SO community for help.
The issue is this: we have a need to programmatically access a shared file that …
How can I check if a UNC Path is available?
I have the problem that the check takes about half a minute if the share is not available :
var fi = new DirectoryInfo(@"\\hostname\samba-sharename\directory");
if (fi.Exists)
//...
Is there …
What's the best way, using C# or other .NET language, to determine if a file path string is on the local machine or a remote server?
It's possible to determine if a path string is UNC using the following:
new …