ProcessRunner Class

Definition

public static class ProcessRunner
type ProcessRunner = class
Public Class ProcessRunner
Inheritance
ProcessRunner

Methods

Run(Process, StringBuilder, StringBuilder, Exception, Int32)

Starts the given process and accumulates the received output and error data in the given StringBuilders. Returns true if the process completed within the specified time without throwing an exception, and false otherwise. Any thrown exception is returned as out parameter.

Run(String, String, StringBuilder, StringBuilder, Int32, Exception, IDictionary<String,String>, Int32, Int32)

Starts and runs a process invoking the given command with the given arguments. If a dictionary of environment variables and their desired values is specified, sets these environment variables prior to execution and resets them afterwards. Accumulates the received output and error data in the respective StringBuilder and returns them as out parameters. Returns true if the process completed within the specified time without throwing an exception, and false otherwise. Returns the exit code of the process as well as any thrown exception as out parameter.

Applies to