Skip to content

TBuildEngine.GetExecuteCommandOutput

Executes command and captures output text

Declaration

Source position: fpmkunit.pp line 1438

public 
function TBuildEngine.GetExecuteCommandOutput(const Cmd: string; 
                                             const Args: TStrings; 
                                             Env: TStrings=Nil; 
                                             IgnoreError: Boolean=False)
                                              : string;  virtual;

Description

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.