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.
Project: Console Application Runner Classes
Applies to: ~>3.0
function Execute(const CmdLine, CurrentDir: string = ''): Boolean; overload; function Execute: Boolean; overload;
Executes the command line application.
There are two overloaded versions of the method.
The first overload has the command line and (optionally) the current directory passed as parameters:
Execute returns True if the application was executed successfully and False if the application failed to run. When False is returned, the ErrorCode property will contain a non-zero error code.
If the current directory (however specified) is the empty string then the executed application’s current directory will be that of its parent process.
If the CmdLine parameter is specified then the CommandLine property will be updated to the same value.
Similarly the CurrentDir property receives the value of any CurrentDir parameter.