ProcessRunner Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |