Skip to content

Latest commit

 

History

History
27 lines (15 loc) · 1.06 KB

TPJCustomConsoleApp-CommandLine.md

File metadata and controls

27 lines (15 loc) · 1.06 KB

CommandLine property

Project: Console Application Runner Classes

Unit: PJConsoleApp

Classes: TPJCustomConsoleApp, TPJConsoleApp

Applies to: ~>3.0

property CommandLine: string;

Description

CommandLine specifies the command line to be executed when the Execute method is called with no parameters.

The property includes the program name and any parameters to be passed to the program. Paths containing spaces must be quoted.

Remarks

If CommandLine is to be used with a the parameterless version of the Execute method then it must be set to some suitable value - it can't be left with its default empty string value.

If Execute is called with a CmdLine parameter then CommandLine is set to the value of the parameter.

The property is public in TPJConsoleApp and protected in TPJCustomConsoleApp.