DelphiDabbler Wiki

Console Application Runner ClassesCurrentDir property

Project: Console Application Runner Classes

Unit: PJConsoleApp

Classes: TPJCustomConsoleApp, TPJConsoleApp

Introduced: v2.0

property CurrentDir: string;


CurrentDir is used to specify the current directory of a console application to be executed by the parameterless version of the Execute method.

If the property is set to the empty string (the default) then the console application is executed with the same current directory as its parent program.


If Execute is called with CmdLine and CurrentDir parameters then this property is set to the value of the CurrentDir parameter.

The property is public in TPJConsoleApp and protected in TPJCustomConsoleApp.

Page last modified on May 08, 2011, at 02:53 PM