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.

CurrentDir property

Project: Console Application Runner Classes

Unit: PJConsoleApp

Classes: TPJCustomConsoleApp, TPJConsoleApp

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