메소드 | 설명 | |
---|---|---|
GetCommandOutput ( string file, string args, string>.IDictionary |
Runs a process until it exits, returns it's complete output.
|
|
RunCommand ( string file, string args, EventHandler |
Runs the given binary given by file with the passed in args and reads the output of the new process as it happens, calling handler with each line being output by the process. Uses environment if provided to customize the environment of the child process.
|
메소드 | 설명 | |
---|---|---|
GetBaseStartInfo ( string file, string args, string>.IDictionary |
||
GetStartInfoForInteractiveProcess ( string file, string args, string>.IDictionary |
||
ReadLinesFromOutput ( OutputStream outputStream, |
public static GetCommandOutput ( string file, string args, string>.IDictionary |
||
file | string | The path to the exectuable. |
args | string | The arguments to pass to the executable. |
environment | string>.IDictionary | The environment variables to use for the executable. |
리턴 | Task |
public static RunCommand ( string file, string args, EventHandler |
||
file | string | The path to the binary to execute, it must not be null. |
args | string | The arguments to pass to the binary to execute, it can be null. |
handler | EventHandler |
The callback to call with the line being oput by the process, it can be called outside /// of the UI thread. Must not be null. |
environment | string>.IDictionary | Optional parameter with values for environment variables to pass on to the child process. |
리턴 | Task |