Exemplo n.º 1
1
		public static int ExecuteProcess(string FileName, string CommandLine, string Input, out List<string> OutputLines)
		{
			using(ChildProcess NewProcess = new ChildProcess(FileName, CommandLine, Input))
			{
				OutputLines = NewProcess.ReadAllLines();
				return NewProcess.ExitCode;
			}
		}
Exemplo n.º 2
0
 public static int ExecuteProcess(string FileName, string CommandLine, string Input, out List <string> OutputLines)
 {
     using (ChildProcess NewProcess = new ChildProcess(FileName, CommandLine, Input))
     {
         OutputLines = NewProcess.ReadAllLines();
         return(NewProcess.ExitCode);
     }
 }