I am trying to output the version of the mk32. I already searched for some answers here in EE but it's still not working. Here's the code:
string Output = "";
Process ProcessObj = new Process();
ProcessObj.StartInfo.Arguments = "-v";
ProcessObj.StartInfo.UseShellExecute = false;
ProcessObj.StartInfo.RedirectStandardOutput = true;
ProcessObj.StartInfo.FileName = @"C:\usr\local\bin\mk32.exe";
Output = ProcessObj.StandardOutput.ReadToEnd();
MessageBox.Show(Output, "mk32 Version");
It just gives me a blank output.
Can anyone please tell me what's wrong with the code?
Thanks so much for the help!