The Console Application Runner classes are designed to be used to control the execution of child console application processes. There are two classes: a class named TPJCustomConsoleApp that is provided as a base class for user-defined sub-classes, and TPJConsoleApp that is used to provide a general way to run and manipulate console applications. Both classes are provided in a single unit, PJConsoleApp.
The classes enable the console application's standard input, standard output and standard error to be redirected to and from files or pipes. They can also timeslice the running of the console application to enable the calling application to continue processing in parallel and to enable redirected output to be processed.
The classes come with numerous demo programs that illustrate how to use the them. Each demo is related to an example documented in the Examples section of the project documentation. There is a VCL version of each demo and a few demos also have FireMonkey 2 versions as well.
Please note that some of the demos use units and classes from the DelphiDabbler IO Utility Classes project. Before attempting to compile the affected demos you need to download this project and copy the required units to the
Users of Delphi XE5 and later must use IO Utility Classes v1.0.1 or later.
For more information see the file
README.txt in the
Demos directory of the download.
As of v3.0 the TPJPipe, TPJPipeFilters & TPJFileHandle classes were removed from the project into I/O Utility Classes.