ExecApp
function ExecApp(AppPath, Parameters: string): boolean;
This function executes an external application and returns immediately (spawns an external asynchronous process).
The function doesn't wait for the executed up to terminate, thus the return value only says if it was possible to launch the application or not.
Parameters
AppPath |
The fully qualified path to the application to be run |
Parameters |
Optional command-line parameters to be passed to the launched application |
Return value
Boolean |
Returns True if the application was launched (started) successfully, otherwise it will return False |
Example usage
// The following example runs a Syncplify.me FTP Script! script passing it as a parameter
// to the Syncplify.me FTP Script! Execution Environment
begin
ExecApp('C:\Program Files\Syncplify.me\FTP Script!\FtpScripterEx.exe', 'C:\MyScripts\TestScript.fscrpas);
end.