hello
(im using c#, visual studio 2008)
I am trying to get Input/Output from a command prompt like process "scrds.exe".
If i try to start the process with standardInput = true, standardOutput = true, or standardError = true. The program cannot start.
after research the "scrds.exe" cant start due to it verifying the lines of output it has already written. I was wondering if there was a way to Redirect the output to my program or file. Save it in main memory or file, and then redirect it back to the process scrds.exe. I have tried lots of methods such as trying to put the process in debuging mode, and only redirecting certain things. Everytime it crashes at startup if Standard output is redirected. Or crashes because the StandardOutput could not be redirected.
Any ideas would be very welcome : )
also i am trying to just write or execute commands in the program from a c# program... If someone knows another way i am willing to do that as well.
Code so far
start.StartInfo.FileName = data;
start.StartInfo.Arguments = argu;
start.StartInfo.UseShellExecute = false;
//start.StartInfo.RedirectStandardInput = true;
//start.StartInfo.RedirectStandardOutput = true;
//start.StartInfo.RedirectStandardError = true;
start.Start();