Redirecting input/output existing console window

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I was wondering if it is possible to redirect the in/output of an existing
(running) console application.

I have been playing around with the Process class, and the start event
arguments. It works then, however, to keep it short, I'm not able to start
the process from within my application. So I found the process in the
GetProcesses list, and assigned an Process object to it, but I am unable to
attach a StreamReader or Writer to it.

Any ideas?
 

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