Control another console application

  • Thread starter Thread starter fireloard
  • Start date Start date
F

fireloard

I have a console application that I need to regular enter data into or
restart. Is there any way I can control this console application from
another C# application? This would help me automate this process.
 
You can control the input and output for the console application using
the RedirectStandardInput/Output/Error properties in the
ProcessStartInfo class. Those properties allow you to read output from
the console application, as well as give input to it.

HTH.

Regards
Senthil
 
Is there any way I can use this to control a console window that is
already running? I have several console applications that would already
be running and I would really need to find them on the system and then
send them an ESC command. Then restart them and send them some other
text based commands.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top