C# 클래스 EpLibrary.cs.ConsoleHelper

This is a class for Console Processing Class
파일 보기 프로젝트 열기: juhgiyo/EpLibrary.cs

공개 메소드들

메소드 설명
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

메소드 상세

ExecuteConsoleCommand() 공개 정적인 메소드

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.
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

ExecuteProgram() 공개 정적인 메소드

Execute the given executable file
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