RunCommand function
Execute a command in the current working directory.
Declaration
function RunCommand(const exename: TProcessString;
const commands: Array of TProcessString = String;
out outputstring: string;
Options: TProcessOptions=[];
SWOptions: TShowWindowOptions=swoNone): BooleanArguments
exename | Binary to start. |
commands | Command-line arguments. |
outputstring | String containing the output of the process. |
Options | Process options enabled in the run loop for the command. |
SWOptions | Show window options for the process. Default value is swoNone. |
Function result
True if the function executed successfully.
Description
RunCommand runs
RunCommandInDir with an empty current working directory.
The version using CmdLine attempts to split the command line in a binary and
separate command-line arguments. This version of the function is deprecated.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
