Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter SixFile Functions (continued)

GetDrive Function

Overview

The GetDrive function will return the drive letter for the specified path.

Syntax/Parameters

Syntax

string = GetDrive ( string path );

Parameters

path

A string containing a complete or partial path with a drive letter.

Return Value

Returns a string containing an upper-case letter and trailing colon or an empty string on failure. Use the GetLastError function to retrieve error information.

Remarks

The GetDrive function does not test the validity of the drive letter and the drive need not be mapped on the system. If a drive letter cannot be found, the GetLastError function will return ERROR_EOD.

Related Functions

Platform Support

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

Legato IDE, Legato Basic