C# Class DevUtils.Proccess.ProcessUtils

The ProcessUtils type provides an implementation of the IProcessUtils interface that provides utility methods for managing processes.

Base project reference: https://github.com/cjaehnen/OpenLib.Utils

Inheritance: IProcessUtils
显示文件 Open project: jornfilho/.net-Dev-Utils

Public Methods

Method Description
ExecuteProcess ( ProcessStartInfo processInfo, string &output, string &errors ) : bool

Executes the process defined in the ProcessStartInfo object and outputs the standard output and errors, if any, into the specified output parameters, respectively.

Method Details

ExecuteProcess() public method

Executes the process defined in the ProcessStartInfo object and outputs the standard output and errors, if any, into the specified output parameters, respectively.
public ExecuteProcess ( ProcessStartInfo processInfo, string &output, string &errors ) : bool
processInfo System.Diagnostics.ProcessStartInfo A object containing information to start the process.
output string An output parameter to contain the standard output of the process.
errors string An output parameter to contain the standard errors, if any, of the process.
return bool