C# 클래스 ShowLib.Fcn

파일 보기 프로젝트 열기: evandrojr/CloudRaid

공개 메소드들

메소드 설명
AdministratorPermissionsCheck ( String SystemDir, String PrgFilesDir ) : System.Boolean

Checks wheater the application is running with administrator rights

CommandExecute ( string program, string arguments, string workingDirectory, int timeoutMinutes ) : string
CommandExecute ( string program, string arguments, string workingDirectory ) : void

Executes shell commands

CommandLineExecute ( string program, string arguments, string &standardOutputMessage, string &standardErrorMessage, string workingDirectory ) : int

Executes shell commands

CommandLineExecute ( string program, string arguments, string workingDirectory ) : string

Executes shell commands deprecated

CommandLineExecuteInBackground ( string program, string arguments, string workingDirectory ) : void

Executes shell commands in background

CommandLineVerboseExecute ( string program, string arguments, string &standardOutputMessage, string &standardErrorMessage, string workingDirectory ) : int

Executes shell commands

CommandLineVerboseExecute ( string program, string arguments, string workingDirectory ) : string

Executes shell commands deprecated

DirectoryCopy ( string srcDir, string trgDir ) : void
DirectoryGetFilesRecursive ( string b ) : List

Gera uma lista lista dos arquivos contidos num determinado diretório

FileBaseName ( string FileName ) : string

Retira a extnsão do nome do arquivo

FileName ( string pathAndFileName ) : string

Extrai o nome de um arquivo do caminho informado

FilePath ( string pathAndFileName ) : string

Extrai o caminho do arquivo informado. Deve ser informado o caminho completo do arquivo

MD5 ( string input ) : string
MyApplicationIsAlreadyIsRunning ( string name ) : bool

Find if your application is already running (needs you application process name)

ProcessAllInstancesFindAndKill ( string name ) : bool

Kill all the processes that matches the begining of the name

ProcessAllInstancesFindAndKillBeginingWith ( string name ) : bool

Kill all the processes that matches the begining of the name

ProcessFind ( string name ) : bool

Find if there is a process running that starts with the same name

ProcessFindBeginingWith ( string name ) : bool

Find if there is a process running that starts with the same name

RarFileDecompress ( string file, string rarExecutableDir ) : bool

Descompacta para o mesmo diretório que estiver o arquivo compactado. Deve ser passado o diretório onde estar o executável do RAR

TimestampToPath ( DateTime dt ) : string

메소드 상세

AdministratorPermissionsCheck() 공개 정적인 메소드

Checks wheater the application is running with administrator rights
public static AdministratorPermissionsCheck ( String SystemDir, String PrgFilesDir ) : System.Boolean
SystemDir String
PrgFilesDir String
리턴 System.Boolean

CommandExecute() 공개 정적인 메소드

public static CommandExecute ( string program, string arguments, string workingDirectory, int timeoutMinutes ) : string
program string
arguments string
workingDirectory string
timeoutMinutes int
리턴 string

CommandExecute() 공개 정적인 메소드

Executes shell commands
public static CommandExecute ( string program, string arguments, string workingDirectory ) : void
program string
arguments string
workingDirectory string
리턴 void

CommandLineExecute() 공개 정적인 메소드

Executes shell commands
public static CommandLineExecute ( string program, string arguments, string &standardOutputMessage, string &standardErrorMessage, string workingDirectory ) : int
program string Programa a ser chamado pela linha de comando
arguments string Conjunto de argumentos
standardOutputMessage string Mensagem de saída
standardErrorMessage string Mensagem de erro
workingDirectory string Diretório de trabalho
리턴 int

CommandLineExecute() 공개 정적인 메소드

Executes shell commands deprecated
public static CommandLineExecute ( string program, string arguments, string workingDirectory ) : string
program string Programa a ser chamado pela linha de comando
arguments string Conjunto de argumentos
workingDirectory string Diretório de trabalho
리턴 string

CommandLineExecuteInBackground() 공개 정적인 메소드

Executes shell commands in background
public static CommandLineExecuteInBackground ( string program, string arguments, string workingDirectory ) : void
program string
arguments string
workingDirectory string
리턴 void

CommandLineVerboseExecute() 공개 정적인 메소드

Executes shell commands
public static CommandLineVerboseExecute ( string program, string arguments, string &standardOutputMessage, string &standardErrorMessage, string workingDirectory ) : int
program string Programa a ser chamado pela linha de comando
arguments string Conjunto de argumentos
standardOutputMessage string Mensagem de saída
standardErrorMessage string Mensagem de erro
workingDirectory string Diretório de trabalho
리턴 int

CommandLineVerboseExecute() 공개 정적인 메소드

Executes shell commands deprecated
public static CommandLineVerboseExecute ( string program, string arguments, string workingDirectory ) : string
program string
arguments string
workingDirectory string
리턴 string

DirectoryCopy() 공개 정적인 메소드

public static DirectoryCopy ( string srcDir, string trgDir ) : void
srcDir string
trgDir string
리턴 void

DirectoryGetFilesRecursive() 공개 정적인 메소드

Gera uma lista lista dos arquivos contidos num determinado diretório
public static DirectoryGetFilesRecursive ( string b ) : List
b string Caminho do diretório desejado
리턴 List

FileBaseName() 공개 정적인 메소드

Retira a extnsão do nome do arquivo
public static FileBaseName ( string FileName ) : string
FileName string Nome do arquivo
리턴 string

FileName() 공개 정적인 메소드

Extrai o nome de um arquivo do caminho informado
public static FileName ( string pathAndFileName ) : string
pathAndFileName string Caminho do arquivo
리턴 string

FilePath() 공개 정적인 메소드

Extrai o caminho do arquivo informado. Deve ser informado o caminho completo do arquivo
public static FilePath ( string pathAndFileName ) : string
pathAndFileName string Caminho completo do arquivo
리턴 string

MD5() 공개 정적인 메소드

public static MD5 ( string input ) : string
input string
리턴 string

MyApplicationIsAlreadyIsRunning() 공개 정적인 메소드

Find if your application is already running (needs you application process name)
public static MyApplicationIsAlreadyIsRunning ( string name ) : bool
name string
리턴 bool

ProcessAllInstancesFindAndKill() 공개 정적인 메소드

Kill all the processes that matches the begining of the name
public static ProcessAllInstancesFindAndKill ( string name ) : bool
name string
리턴 bool

ProcessAllInstancesFindAndKillBeginingWith() 공개 정적인 메소드

Kill all the processes that matches the begining of the name
public static ProcessAllInstancesFindAndKillBeginingWith ( string name ) : bool
name string
리턴 bool

ProcessFind() 공개 정적인 메소드

Find if there is a process running that starts with the same name
public static ProcessFind ( string name ) : bool
name string
리턴 bool

ProcessFindBeginingWith() 공개 정적인 메소드

Find if there is a process running that starts with the same name
public static ProcessFindBeginingWith ( string name ) : bool
name string
리턴 bool

RarFileDecompress() 공개 정적인 메소드

Descompacta para o mesmo diretório que estiver o arquivo compactado. Deve ser passado o diretório onde estar o executável do RAR
public static RarFileDecompress ( string file, string rarExecutableDir ) : bool
file string File to be decompressed
rarExecutableDir string Directory where lies the rar.exe
리턴 bool

TimestampToPath() 공개 정적인 메소드

public static TimestampToPath ( DateTime dt ) : string
dt DateTime
리턴 string