How do I determine a mapped drive’s actual path?
So if I have a mapped drive on a machine called "Z", how can I use .NET to determine the machine and path for the mapped folder?
The code can assume it’s running on the machine with the mapped drive.
I looked at Path, Directory, and FileInfo objects, but can’t seem to find anything.
I also looked for existing questions, but could not find what I’m looking for.
Here are some code samples:
All of the magic derives from a Windows function:
Example invocation: