[ACCEPTED]-C# Send Commands-command-line
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.
A few possibilities:
How to send command to console application from GUI application
How can I send keypresses to a running process object? (from @Truewill)
0
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
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.