C# 클래스 Zazzles.ProcessHandler

파일 보기 프로젝트 열기: FOGProject/zazzles 1 사용 예제들

공개 메소드들

메소드 설명
CreateImpersonatedClientEXE ( string filePath, string param, string user ) : Process

Create an process as another user. The process will not be run automatically. This can only be done on unix systems.

Kill ( string name ) : void

Kill the first instance of a process

KillAll ( string name ) : void

Kill all instances of a process

KillAllEXE ( string name ) : void

Kill all instances of an EXE

KillEXE ( string name ) : void

Kill the first instance of an EXE

Run ( string filePath, string param, bool wait = true, bool log = true ) : int

Run a process

Run ( string filePath, string param, bool wait, string &stdout, bool log = true ) : int

Run a process

RunClientEXE ( string file, string param, bool wait = true, bool log = true ) : int

Run an EXE located in the client's directory

RunClientEXE ( string file, string param, bool wait, string &stdout, bool log = true ) : int

Run an EXE located in the client's directory

RunEXE ( string filePath, string param, bool wait = true, bool log = true ) : int

Run an EXE

RunEXE ( string filePath, string param, bool wait, string &stdout, bool log = true ) : int

Run an EXE

비공개 메소드들

메소드 설명
SplitOutput ( string output ) : string[]

메소드 상세

CreateImpersonatedClientEXE() 공개 정적인 메소드

Create an process as another user. The process will not be run automatically. This can only be done on unix systems.
public static CreateImpersonatedClientEXE ( string filePath, string param, string user ) : Process
filePath string The path of the executable to run
param string Parameters to run the process with
user string The user to impersonate
리턴 System.Diagnostics.Process

Kill() 공개 정적인 메소드

Kill the first instance of a process
public static Kill ( string name ) : void
name string The name of the process
리턴 void

KillAll() 공개 정적인 메소드

Kill all instances of a process
public static KillAll ( string name ) : void
name string The name of the process
리턴 void

KillAllEXE() 공개 정적인 메소드

Kill all instances of an EXE
public static KillAllEXE ( string name ) : void
name string The name of the process
리턴 void

KillEXE() 공개 정적인 메소드

Kill the first instance of an EXE
public static KillEXE ( string name ) : void
name string The name of the EXE
리턴 void

Run() 공개 정적인 메소드

Run a process
public static Run ( string filePath, string param, bool wait = true, bool log = true ) : int
filePath string The path of the executable to run
param string Parameters to run the process with
wait bool Wait for the process to exit
log bool Log errors
리턴 int

Run() 공개 정적인 메소드

Run a process
public static Run ( string filePath, string param, bool wait, string &stdout, bool log = true ) : int
filePath string The path of the executable to run
param string Parameters to run the process with
wait bool Wait for the process to exit
stdout string An array to place stdout, split by lines
log bool Log errors
리턴 int

RunClientEXE() 공개 정적인 메소드

Run an EXE located in the client's directory
public static RunClientEXE ( string file, string param, bool wait = true, bool log = true ) : int
file string The name of the EXE to run
param string Parameters to run the EXE with
wait bool Wait for the process to exit
log bool Log errors
리턴 int

RunClientEXE() 공개 정적인 메소드

Run an EXE located in the client's directory
public static RunClientEXE ( string file, string param, bool wait, string &stdout, bool log = true ) : int
file string The name of the EXE to run
param string Parameters to run the EXE with
wait bool Wait for the process to exit
stdout string An array to place stdout, split by lines
log bool Log errors
리턴 int

RunEXE() 공개 정적인 메소드

Run an EXE
public static RunEXE ( string filePath, string param, bool wait = true, bool log = true ) : int
filePath string The path of the EXE to run
param string Parameters to run the EXE with
wait bool Wait for the process to exit
log bool Log errors
리턴 int

RunEXE() 공개 정적인 메소드

Run an EXE
public static RunEXE ( string filePath, string param, bool wait, string &stdout, bool log = true ) : int
filePath string The path of the EXE to run
param string Parameters to run the EXE with
wait bool Wait for the process to exit
stdout string An array to place stdout, split by lines
log bool Log errors
리턴 int