| [Overview][Types][Classes][Procedures and functions][Variables][Index] | 
Execute a command in the current working directory
Source position: processbody.inc line 182
function RunCommand(  | 
const exename: TProcessString;  | 
const commands: array of TProcessString;  | 
out outputstring: string;  | 
Options: TProcessOptions = [];  | 
SWOptions: TShowWindowOptions = swoNone  | 
):Boolean;  | 
const cmdline: TProcessString;  | 
out outputstring: string  | 
):Boolean;  | 
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.  | 
True if the function executed successfully
cmdline  | 
  | 
Qualified path to the binary to start, and command-line arguments separated by whitespace.  | 
outputstring  | 
  | 
String containing the output of the process.  | 
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.
  | 
Run a command in a specific directory.  |