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
In my project I use the System.IO :
if (Directory.Exists(@"\\hostname\samba-sharename\directory")) { ...
and it's pretty fast so far...