I made a program that reads the output of steamCMD which is a command line application.
When I start steamCMD from the .exe file directly, everything works perfectly, but when I run it from my program I don't get any output. The command line is just black and the output I get in my app is empty. However, after I close steamCMD and hit the read button, I can read whatever it outputted which I couldn't see even in steamCMD before.
Here is my code:
Button for starting steamCMD:
compiler.StartInfo.FileName = @"C:\Users\Stelios LLAPTOP\Desktop\sCMD.exe";
compiler.StartInfo.UseShellExecute = false;
compiler.StartInfo.RedirectStandardOutput = true;
compiler.Start();
Button to read its output:
richTextBox1.Text = compiler.StandardOutput.ReadToEnd();
compiler.WaitForExit();