Click here to Skip to main content
Click here to Skip to main content

Convert a file path to a UNC Path

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...

Alternatives

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

17 Feb 2011  
TomQuinn 1 alternative  
 
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

License

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

About the Author

Prerak Patel
Software Developer
India India
Working since 2006 on VBA, VB6, VB.Net, C#, ASP.Net, MSSQL



  • The fear of suffering is worse than the suffering itself.
  • People need not fear the unknown if they are capable of achieving what they need and want.
  • Every blessing ignored becomes a curse.
  • Sometimes what's in your head isn't as crazy as you think.
  • We never really grow up, we only learn how to act in public.
  • You can make very bad teams with very good individuals.
  • Admitting mistakes means you have a sense of responsibility in your actions and that shows you are more matured than almost anyone. -Nithin


| | Privacy | Mobile
Web01 | 2.8.140709.1 | Last Updated 21 Feb 2011
Article Copyright 2011 by Prerak Patel
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid