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 |