<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > File > PATH: functions working on paths > Path_IsUNC |
Description
Determines if a sPath string is a valid Universal Naming Convention (UNC) path, as opposed to a path based on a drive letter.
Returns %TRUE if sPath is UNC. %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/path Unix
\\servername\path Windows
Restrictions
See also
Examples