Convert filename to UNC

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

Is there a .NET function to convert a filename to a UNC value? For instance,
converting "H:\SomeFolder\Somefile.txt" to
\\server\share\SomeFolder\Somefile.txt

Thanks.

Tom
 
Never mind, I figured it out. Just stramge that the .NET framework doesn't
provide something like this directly.

Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top