Path_IsUNCServer

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > File > PATH: functions working on paths >

Path_IsUNCServer

 

Description

 

Determines if a string is a valid Universal Naming Convention (UNC) for a server path only.

 

Returns %TRUE if sPath is UNC server only. %FALSE if not.

 

Syntax

 

n = Path_IsUNC(sPath)

 

Returns

 

Number.

 

Parameters

 

Name

Type

Optional

Meaning

sPath

String

No


 

Remarks

 

Universal Naming Convention: a standard for identifying servers, printers and other resources in a network, which originated in the Unix community. A UNC path uses double slashes or backslashes to precede the name of the computer. The path (disk and directories) within the computer are separated with a single slash or backslash, as in the following examples. Note that in the Windows example, drive letters (c:, d:, etc.) are not used in UNC names.

 

   //servername   Unix server
 
   \\servername   Windows server

 

Restrictions

 

See also

 

Examples