CCNet.Build.Common.Execute.CreateProcess C# (CSharp) Method

CreateProcess() private static method

Creates process instance to run.
private static CreateProcess ( string fileName, string arguments ) : Process
fileName string
arguments string
return System.Diagnostics.Process
		private static Process CreateProcess(string fileName, string arguments)
		{
			return new Process
			{
				StartInfo = new ProcessStartInfo
				{
					FileName = fileName,
					Arguments = arguments,
					CreateNoWindow = true,
					UseShellExecute = false,
					RedirectStandardOutput = true,
					RedirectStandardError = true
				}
			};
		}
	}