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#?
I have a command line program running and I would like to send additional
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.