How to determine if a network path is available or not (online or offline)?

Using .NET / C#, how to determine if a network path (e.g. \mymachine\myfolder) is available or not (online or offline)? Is there a way to be notified by WMI of such event?

Thanks!

7
задан Martin 26 October 2010 в 20:36
поделиться