I'm using a Windows form I created in C# to execute a batch file. The batch file runs, and the cmd window appears, but the window is blank and does not display any of the commands the batch file is executing. Is there a way I can make the CMD window display what it is doing? Relevant code snippet below.
var processInfo = new ProcessStartInfo("cmd.exe", "/c " + "\"C:\\tf_Test2.bat\"");
processInfo.UseShellExecute = false;
processInfo.RedirectStandardError = true;
processInfo.RedirectStandardOutput = true;
var process = Process.Start(processInfo);
process.WaitForExit();