Is there any function that would let me convert a UNC path ("\\server\share\folder") back to something like "x:\folder". I need to convert it back to a path like that, if the share is a mapped drive.
I suppose i could get a list of all network drives and try to convert their paths to UNC and see if they match with my original UNC share. But i hope there is a better way