Method | Description | |
---|---|---|
Command ( string script, |
||
Run ( ) : int | ||
Run ( string programAndArgs ) : int |
Run the specified command through the shell specified in the COMSPEC environment variable. Output is sent to the default console output and error streams.
|
|
Run ( string programAndArgs, |
Run the specified command through the shell specified in the COMSPEC or SHELL environment variable.
|
|
Run ( string programAndArgs, string &output ) : int |
Run the specified command through the shell specified in the COMSPEC environment variable.
|
|
Run ( string programAndArgs, string &output, bool debugMode ) : int | ||
Run ( string programAndArgs, string &output, string &error ) : int |
Run the specified command through the shell specified in the COMSPEC environment variable.
|
Method | Description | |
---|---|---|
CreateScriptFile ( string script ) : string |
public Command ( string script, |
||
script | string | |
outputWriter | ||
errorWriter | ||
debugMode | bool | |
return | System |
public static Run ( string programAndArgs ) : int | ||
programAndArgs | string | The command to pass to the shell. |
return | int |
public static Run ( string programAndArgs, |
||
programAndArgs | string | The command to pass to the shell. |
outputWriter | The stream to which the standard output stream will be redirected. | |
errorWriter | The stream to which the standard error stream will be redirected. | |
debugMode | bool | Debug mode |
return | int |
public static Run ( string programAndArgs, string &output ) : int | ||
programAndArgs | string | The command to pass to the shell. |
output | string | Interleaved results from standard output and standard error streams. |
return | int |
public static Run ( string programAndArgs, string &output, bool debugMode ) : int | ||
programAndArgs | string | |
output | string | |
debugMode | bool | |
return | int |
public static Run ( string programAndArgs, string &output, string &error ) : int | ||
programAndArgs | string | The command to pass to the shell. |
output | string | Results from standard output stream. |
error | string | Results from standard error stream. |
return | int |