[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Execute another process (program).
Source position: line 0
function ExecuteProcess( |
const Path: AnsiString; |
const ComLine: AnsiString |
):Integer; |
const Path: AnsiString; |
const ComLine: array [] of AnsiString |
):Integer; |
ExecuteProcesswill execute the program in Path, passing it the arguments in ComLine. ExecuteProcesswill then wait for the program to finish, and will return the exit code of the executed program. In case ComLineis a single string, it will be split out in an array of strings, taking into account common whitespace and quote rules.
In case the program could not be executed or an other error occurs, an EOSErrorexception will be raised.
|
Operating system error. |