Skip to content

TProcess.Executable

Executable name. Supersedes CommandLine and ApplicationName.

Declaration

Source position: processbody.inc line 224

published property Executable: TProcessString;

Description

Executable is the name of the executable to start. It should not contain any command-line arguments. If no path is given, it will be searched in the PATH environment variable.

The extension must be given, none will be added by the component itself. It may be that the OS adds the extension, but this behaviour is not guaranteed.

Arguments should be passed in TProcess.Parameters.

Executable supersedes the TProcess.CommandLine and TProcess.ApplicationName properties, which have been deprecated. However, if either of CommandLine or ApplicationName is specified, they will be used instead of Executable.

See also

Name Description
CommandLine Command-line to execute (deprecated).
ApplicationName Name of the application to start (deprecated).
Parameters Command-line arguments. Supersedes CommandLine.