Shell.GetCmdLine

Top  Previous  Next

Returns the command line.

 

Syntax

function Shell.GetCmdLine(): string

 

Alternative Names

ibec_GetCmdLine

 

Description

Returns the complete command line as used for starting the process that executes the current script.

 

The Return Value is the command line string.

 

See Also

Shell.CmdParamStr
Shell.CmdParamCount

 

Example

execute UDSBlock returns (paramcnt integer, paramvalue varchar(1024), cmdline varchar(1024))

as

begin
  paramcnt = Shell.CmdParamCount();

  paramvalue = Shell.CmdParamStr(1);

  cmdline = Shell.GetCmdLine();

 

  /* returns the number of parameters, the first parameter and the complete command line */

end