I want to be able to get the UNC path of a mapped drive. For example, if I have the Q:
drive mapped to a share on a remote host, I want to check to see not only if the Q:
drive exists, but I want to find out what UNC path it is actually mapped to.
Checking to see if the drive exists is easy enough with:
Directory.Exists(@"Q:\")
But can't figure out how to get the share name (full UNC path). I don't have a file to search for.