CodeItBetter Programming Another VB Programming Blog

How to Check whether given path is a network path

Posted on January 4, 2009
1
2
3
4
5
6
7
'System & API - How to Check whether given path is a network path
Option Explicit
 
Public Function IsUNCName(ByVal strPathName As String) As Boolean
    Const strUNCNAME$ = "\\//\"        'so can check for \\, //, \/, /\
    IsUNCName = ((InStr(strUNCNAME, Left$(strPathName, 2)) > 0) And (Len(strPathName) > 1))
End Function
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.