메소드 | 설명 | |
---|---|---|
ExecuteConsoleCommand ( String command, String arguments, bool isDosCommand = false, bool isWaitForTerminate = true, bool isShowWindow = false, bool redirectStdOutput = true ) : String |
Execute the given command to the console and return the result ** waitStruct is ignored when isWaitForTerminate is false. retProcessHandle will be NULL when the function exits. This can be used when isWaitForTerminate is true, and you need to terminate the process while waiting. Terminate the process from the other thread using the given handle pointer. |
|
ExecuteProgram ( String execFilePath, String parameters = null ) : void |
Execute the given executable file
|
public static ExecuteConsoleCommand ( String command, String arguments, bool isDosCommand = false, bool isWaitForTerminate = true, bool isShowWindow = false, bool redirectStdOutput = true ) : String | ||
command | String | the command to execute |
arguments | String | the argument for the command |
isDosCommand | bool | flag whether the command is standard DOS command or not |
isWaitForTerminate | bool | flag for waiting for process to terminate or not |
isShowWindow | bool | flag for whether to show console window |
redirectStdOutput | bool | flag for whether console to print to console window or to pipe. /// true to print to pipe; false to print to console. /// |
리턴 | String |
public static ExecuteProgram ( String execFilePath, String parameters = null ) : void | ||
execFilePath | String | the program file path to execute |
parameters | String | the parameter variables for executing file |
리턴 | void |