Runs a program, waits until it terminates and returns its exit code
Source position: mseprocutils.pas line 148
function execwaitmse( |
const commandline: msestring; |
const options: execoptionsty = []; |
const workingdirectory: filenamety = ''; |
const params: msestringarty = Nil; |
const envvars: msestringarty = Nil |
):Integer; overload; |
Runs a program, waits until it terminates and returns its exit code. The calling thread is blocked meanwhile: called from the main thread, the application does not respond and is not repainted. To keep the application responsive, see getprocessexitcode.