Executes command and captures output text
Source position: fpmkunit.pp line 1423
public function TBuildEngine.GetExecuteCommandOutput( |
const Cmd: string; |
const Args: TStrings; |
Env: TStrings = Nil; |
IgnoreError: Boolean = False |
):string; virtual; |
Cmd |
|
Command executable to run |
Args |
|
Command line arguments list |
Env |
|
Environment variables for command execution |
IgnoreError |
|
Whether to ignore command execution errors |
Command output as string
Executes an external command and captures its standard output as a string. This is useful for retrieving information from external tools like version queries or configuration detection commands.
The command execution behavior follows the same pattern as ExecuteCommand but additionally captures and returns the output text.