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
This class is designed to be used to control the execution of child console application processes. The class provides facilities to redirect the console process’ standard input, output and error handles. The application’s execution can be given a time-out and can be time sliced to allow progress to be reported and redirected output to be handled while the console application continues to execute. Security levels and environment blocks can be customised. Errant processes can be terminated. Finally, the program’s exit code is made available.
|Executes the console application.
|Attempts to terminate the console application process.
|Command line used to execute a console application.
|Foreground and background colours used in console window.
|Title to be displayed in any new console window.
|Application’s current directory.
|Approximate time in milliseconds since the console application began executing.
|Pointer to the environment block used by the console application.
|Provides information about any error that occurred while attempting to run a console application.
|Error message corresponding to any non-zero value of ErrorCode.
|Exit code returned by the console application on completion.
|Indicates whether timed-out processes should be terminated or left running.
|Maximum permitted execution time of the console application.
|Priority with which the console application is started.
|Specifies security and inheritance attributes for the console application process.
|Provides process information for the executing console application.
|Size of console’s screen buffer.
|The console application’s standard error handle.
|The console application’s standard input handle.
|The console application’s standard output handle.
|Security and inheritance attributes for the console application’s primary thread.
|Length of each time slice for a timed sliced console application.
|Amount of time a console application has left to run before timing out.
|Determines whether environment block referenced by Environment is in Unicode or ANSI.
|Determines if a console application opens a new console window when run.
|Determines whether the console application is to be displayed.
|Position of console window on screen.
|Size of console window.
|Triggered when an application completes or times out.
|Triggered after a console application process is created and just before it starts executing.
|Triggered when the executing application yields control to this class. Permits necessary work to be completed.