Click here to Skip to main content
15,896,730 members
Articles / Programming Languages / Visual Basic

Convert a file path to a UNC Path

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
17 Feb 2011CPOL 52.6K   11  
A simple function used to determine if a file path refers to a network drive and if it does convert it to use the UNC path

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
20 Feb 2011Prerak Patel
Here is an API way using WNetGetUniversalNameImports System.Runtime.InteropServices _ Private Shared Function GetUName(ByVal Path As String, ByVal outName As Integer, ByVal bObj As...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions