Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter SixFile Functions (continued)

GetUNCShareName Function

Overview

The GetUNCShareName function returns the UNC name as extracted from an incoming path or URI.

Syntax/Parameters

Syntax

string = GetUNCShareName ( string path );

Parameters

path

A string containing a path with a UNC.

Return Value

Returns a string containing the share name portion of 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 GetUNCShareName function returns the share name portion of the UNC. For example:

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

will be returned as “share-name”.

Related Functions

Platform Support

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

Legato IDE, Legato Basic