How to get a fully qualified UNC path?

i know nothing picture i know nothing · Oct 16, 2013 · Viewed 12k times · Source

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?

Answer