How can I implement this function:
GetHost("C:\MyFolder"); //Local
GetHost("D:\MyFolder"); //Local
GetHost("\\FileServer1\MyFolder"); //FileServer1
GetHost("Y:\MyFolder"); //FileServer1
GetHost("\\LocalSharedFolder\MyOtherFolder"); //Local
GetHost("\\SpecialSharedFolder\YetAnotherFolder"); //FileServer2
Edit1:
So far i've tried juggling DirectoryInfo, DriveInfo, ManagementClass