|
|
|
| 9 January 2002 | IsUNC() |
| Author | ScriptLogic Corporation |
| Action | Indicates whether the given path is a UNC or not. |
| Syntax | IsUNC ("path") |
| Parameters | |
| Remarks | Simple, but useful. Note: IsUNC() does not check for the existence or the validity of the path, just whether it is in UNC form or not. |
| Returns | 1 - the path is a UNC 0 - the path is not a UNC |
| Dependencies | None. |
| Examples | $filespec='\\testsvr\testshare\file.ext' IF IsUNC($filespec) ?$filespec+' is a UNC' ELSE ?$filespec+' is not a UNC' ENDIF |
| Source |
FUNCTION IsUNC ($expc)
; returns 1 if the string passed is a UNC
IF (Substr($expc,1,2) = '\\')
$isunc=1
ELSE
$isunc=0
ENDIF
ENDFUNCTION ; - IsUNC -
|
|
|
|