DelphiDabbler Wiki

Console Application Runner ClassesCommandLine property

Project: Console Application Runner Classes

Unit: PJConsoleApp

Classes: TPJCustomConsoleApp, TPJConsoleApp

Introduced: v2.0

property CommandLine: string;


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.


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.

Page last modified on May 08, 2011, at 01:20 PM