scripting@wanadoo.nl




IsUNC()

http://www.scriptlogic.com/kixtart/FunctionLibrary_FunctionList.aspx


actual FunctionLibrary list on 'Scriptlogic' site printer-friendly mirror of UDF topic on 'scripting@wanadoo.nl' site close
9 January 2002 IsUNC()
AuthorScriptLogic Corporation
Action Indicates whether the given path is a UNC or not.
SyntaxIsUNC ("path") 
Parameters
  • path (Required / String) the path you wish to check. 
  • RemarksSimple, 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. 
    Returns1 - the path is a UNC
    0 - the path is not a UNC 
    DependenciesNone. 
    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 -
     
      original source of UDF topic. show actual FunctionLibrary list on Scriptlogic site close top
              printer-friendly mirror of UDF topic on scripting@wanadoo.nl site  




    Copyright © 2003 www.scriptlogic.com & scripting@wanadoo.nl - last updated on 20 May 2003


    Site Meter