/// <summary> /// ConsoleApp constructor /// </summary> /// <param name="fileName">File name or DOS command</param> /// <param name="cmdLine">Command-line arguments</param> public ConsoleApp(string fileName, string cmdLine) { FileName = fileName; CmdLine = cmdLine; _consoleCtrlEventHandler += ConsoleCtrlHandler; }
/// <summary> /// ConsoleApp constructor /// </summary> /// <param name="fileName">File name or DOS command</param> /// <param name="cmdLine">Command-line arguments</param> public ConsoleApp(string fileName, string cmdLine) { FileName = fileName; CmdLine = cmdLine; _consoleCtrlEventHandler += ConsoleCtrlHandler; }
public ConsoleApp(string fileName) { FileName = fileName; CmdLine = ""; Verb = ""; User = ""; Password = ""; Domain = ""; CreateNoWindow = true; _envVariables = new Dictionary <string, string>(); _consoleCtrlEventHandler += ConsoleCtrlHandler; }