Unit 'mseprocutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#msegui]

execwaitmse

Runs a program, waits until it terminates and returns its exit code

Declaration

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;

Description

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.


Documentation generated on: 2026-10-03