I have a command line program running and I would like to send additional commands to it (I.E. Once it is already running) How can I do this in C#?
3 Answers
If the process is started by your C# program, then you can use Process.StandardInput to send commands to it.
If you are sending command to other processes, you can use the SendKey class as demoed in here.
Comments
A few possibilities:
1 Comment
TrueWill
Or optionally How can I send keypresses to a running process object?