help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'sysutils' (#rtl)

ExecuteProcess

Execute another process (program).

Declaration

Source position: line 0

function ExecuteProcess(

  const Path: AnsiString;

  const ComLine: AnsiString

):Integer;

function ExecuteProcess(

  const Path: AnsiString;

  const ComLine: array of AnsiString

):Integer;

Description

ExecuteProcess will execute the program in Path, passing it the arguments in ComLine. ExecuteProcess will then wait for the program to finish, and will return the exit code of the executed program. In case ComLine is a single string, it will be split out in an array of strings, taking into account common whitespace and quote rules.

Errors

In case the program could not be executed or an other error occurs, an EOSError exception will be raised.

See also

EOSError

  

Operating system error.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505