Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter FiveGeneral Functions (continued)

GetCommandLine Function

Overview

The GetCommandLine function returns the raw command line text from the application startup.

Syntax/Parameters

Syntax

string = GetCommandLine ( );

Parameters

(none)

Return Value

Returns a string containing the text of the command line.

Remarks

The string is the basic command line as presented to the application. For console applications, the command line is reconstructed from the arguments presented by the operating system.

The script can parse the command line and make it own determination of its content.

If the ‘/CommandFile’ option is used, the extended data is not available to this function.

Note that if the script run is within the GUI and the running instance has received control from another instance, the command line parameters are not passed through. To insure the control is not passed to an existing instance, use the /NewInstance command line option.

The command line text is the text from the original instance creation. In other words, if GetCommandLine function is called from a script run from a transfer to an existing instance, the command line text will reflect the original instance’s text.

Related Functions

Platform Support

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

Legato IDE, Legato Basic