This question already has answers here:
How to programmatically discover mapped network drives on system and their server names?
(7 answers)
How do I determine a mapped drive's actual path?
(13 answers)
Closed 6 years ago.
This might be simple and I'm just overlooking something.
The FileInfo.FileName
of a file lying on a network share returns something like this:
H:\Directory1\Dir2\...
What I need, though:
\\server\share\Directory1\Dir2\...
How can I achieve this?