11
Question: I want to control cmd.exe from winforms.
I DO NOT mean every command in a single process, with startupinfo, and then stop.
I mean for example start the (My) SQL or GDB command prompt, send command, receive answer, send next command, receive next answer, stop SQL command prompt
exit process.
Basically I want to write a GUI on top of any console application.
I want to have the output from cmd.exe redirected to a textfield, and the input coming from another textfield (on press enter/OK button).
I don't find any samples for this. Is there a way?