Welcome to the new DelphiDabbler Code Library Documentation.

This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.

Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.

CommandLine property

Project: Console Application Runner Classes

Unit: PJConsoleApp

Classes: TPJCustomConsoleApp, TPJConsoleApp

Applies to: ~>3.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.