JVCL Help:TJvCreateProcess.CommandLine

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Determines the command line to execute.


Pascal

 propertyCommandLine: string;


Description

Set CommandLine to a string to specify the command line to execute.
If the string is empty then TJvCreateProcess uses the string specified by ApplicationName as the command line.
If both ApplicationName and CommandLine are not empty, then ApplicationName specifies the module to execute, and CommandLine specifies the command line. Generally the module name is repeated as the first token in the command line.
If ApplicationName is empty, then the first white-space – delimited token of the command line specifies the module name. If you are using a long file name that contains a space, use quoted strings to indicate where the file name ends and the arguments begin. If the file name does not contain an extension, .exe is appended. Therefore, if the file name extension is .com, this parameter must include the .com extension. If the file name ends in a period (.) with no extension, or if the file name contains a path, .exe is not appended. If the file name does not contain a directory path, the system searches for the executable file in the following sequence:

  • The directory from which the application loaded.
  • The current directory for the parent process.
  • The Windows system directory.
  • The Windows directory.
  • The directories that are listed in the PATH environment variable.


See Also

TJvCreateProcess.ApplicationName, TJvCreateProcess.Run


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page