Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter SixFile Functions (continued)

GetUNC Function

Overview

The GetUNC function returns the UNC host-name as extracted from an incoming path or URI.

Syntax/Parameters

Syntax

string = GetUNC ( string path );

Parameters

path

A string containing a path with a UNC.

Return Value

Returns a string containing the UNC or an empty string on failure. Use the GetLastError function to retrieve error information.

Remarks

A Universal Naming Convention (UNC Path) contains a host-name, share-name, optional path and optional filename.

The GetUNC function returns the host-name of the UNC. For example:

\\host-name\share-name\path\file.ext

will be returned as “host-name”.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic