'-----------------------------------------------------------
' FUNCTION: IsUNCName
'
' Determines whether the pathname specified is a UNC name.
' UNC (Universal Naming Convention) names are typically
' used to specify machine resources, such as remote network
' shares, named pipes, etc. An example of a UNC name is
' "\\SERVER\SHARE\FILENAME.EXT".
'
' IN: [strPathName] - pathname to check
'
' Returns: True if pathname is a UNC name, False otherwise
'-----------------------------------------------------------
'
Function IsUNCName(ByVal strPathName As String) As Integer
Const strUNCNAME$ = "\\//\" 'so can check for \\, //, \/, /\
IsUNCName = ((InStr(strUNCNAME, Left$(strPathName, 2)) > 0) And _
(Len(strPathName) > 1))
End Function
Share:
These icons link to social bookmarking sites where readers can share and discover new web pages.
