Итак, у меня есть эта программа.
Process console = new Process();
console.StartInfo.FileName = ...
console.StartInfo.UseShellExecute = false;
console.StartInfo.RedirectStandardOutput = true;
console.StartInfo.RedirectStandardInput = true;
console.Start();
string output = console.StandardOutput.ReadLine();
console.WaitForExit();
Проблема в том, что NET консольное приложение, которое выполняется этим кодом, сразу же закрывается сразу после открытия. Не могли бы вы помочь мне исправить это? Что я делаю не так?