[Overview][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'process' (#fcl)

TProcess.CommandLine (deprecated)

Command-line to execute (deprecated)

Declaration

Source position: process.pp line 143

published property TProcess.CommandLine : string
  read FCommandLine
  write SetCommandLine;

Description

CommandLine is deprecated. To avoid problems with command-line options with spaces in them and the quoting problems that this entails, it has been superseded by the properties TProcess.Executable and TProcess.Parameters, which should be used instead of CommandLine. New code should leave CommandLine empty.

CommandLine is the command-line to be executed: this is the name of the program to be executed, followed by any options it should be passed.

If the command to be executed or any of the arguments contains whitespace (space, tab character, linefeed character) it should be enclosed in single or double quotes.

If no absolute pathname is given for the command to be executed, it is searched for in the PATH environment variable. On Windows, the current directory always will be searched first. On other platforms, this is not so.

Note that either CommandLine or ApplicationName must be set prior to calling Execute.

See also

TProcess.ApplicationName

  

Name of the application to start (deprecated)

TProcess.Executable

  

Executable name. Supersedes CommandLine and ApplicationName.

TProcess.Parameters

  

Command-line argumens. Supersedes CommandLine.


Documentation generated on: Sep 28 2017