Best way to interact with Command Line application
You would need to redirect both the input and output streams, using Process
; it is slightly trickier handling both, since you need to be careful that things aren't lost in the buffers (causing deadlock).
- MSDN : Redirecting input
- MSDN : Redirecting output
- Here's a basic alternative example.
You might also want to look at OutputDataReceived for event-based responses.