API Documentation > CorelDRAW > 2025-v26 > CorelScriptTools > ICorelScriptTools
CorelScriptTools.GetCommandLine method
Gets Command Line
Syntax:
Function GetCommandLine() As String
Remarks:
The GetCommandLine method returns the parameters used in the command line that launch a script. To test this command, specify a command line in the Command Line text box in the Options dialog box of the Corel SCRIPT Editor (click Tools } Options, and the click the Environment tab). The GetCommandLine method returns a string variable that is passed the command line parameters.
Examples:
The following VBA example returns CommandLine:
CommandLine$ = GETCOMMANDLINE ( )