Table of Contents

Method RunProcessAndWait

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

RunProcessAndWait(ProcessStartInfo, bool)

Runs a process using the specified start information and optionally waits for it to exit.

public static int RunProcessAndWait(ProcessStartInfo startInfo, bool wait)

Parameters

startInfo ProcessStartInfo

The start information for the process.

wait bool

If true, waits for the process to exit before returning.

Returns

int

The exit code of the process if wait is true; otherwise, 0.