Reference Codebot.Process.pas
Part of the Codebot package
The Codebot.Process unit runs other programs.
TExternalCommand is a component that runs a program, reads its output one line at a time through OnLineRead, and invokes OnComplete when the program ends. With BufferOutput, which is on by default, every line is also kept in Output. You can stop the program with Kill, and EExternalCommandException is raised if it can't be run.
RunCommand is a simpler way to run a program with up to three arguments, wait for it to finish, and optionally collect its output in a TStrings.
Items 15 items
| Name | Kind | Line |
|---|---|---|
| EExternalCommandException | class | 28 |
| RunCommand | procedure | 76, 77, 78, 79 |
| TExternalCommand | class | 33 |
| Create | constructor | 50 |
| Destroy | destructor | 52 |
| Kill | procedure | 56 |
| Run | procedure | 54 |
| Arguments | property | 65 |
| BufferOutput | property | 67 |
| Command | property | 63 |
| OnComplete | property | 71 |
| OnLineRead | property | 69 |
| Output | property | 58 |
| Running | property | 60 |
| TLineReadEvent | procedural | 24 |