Property consoleProcess.ExitCode Overload Gets the exit code of the console process. If the process is still running, waits until it exits. public int ExitCode { get; } Property Value int If fails, returns int.MinValue.