I am developing a Windows Forms application for Mono platform. I need to use a third-party software which has a command-line interface accessible through terminal. How can I interact with that app from my application?
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.
The
Processclass will allow you to start and interact with a command line application.Use
ProcessStartInfoto setup the process and how you would interact with it (UseShellExecute = false;then ensure redirection of standard input/output/error).See this simple example on the mono site.