[ACCEPTED]-C# Send Commands-command-line

Accepted answer
Score: 11

If the process is started by your C# program, then 3 you can use Process.StandardInput to send commands to it.

If you 2 are sending command to other processes, you 1 can use the SendKey class as demoed in here.

Score: 1

If you are talking about an interactive 5 console program you just need to use Console.Readline() to 4 get the input from the console and process 3 it in your code. If you are talking about 2 something more complex read about Inter-process 1 communication (IPC).

More Related questions