console output (stdout) redirection

  • Thread starter Thread starter Chris LaJoie
  • Start date Start date
C

Chris LaJoie

I'm looking for a way to redirect console output in a way that would enable
me to create a frontend to a command line utility by parsing the command
line utility's output. I have been able to do this in C, but my lack of
experience in C/C++/Managed C++ is preventing me from creating a class that
makes these things accessible from managed code. The HowTo I read even
shows you how to hide the 'child' console window. I either need to figure
out how to port this C code to a managed C++ class or I need to find a way
to do this that's already built into the .NET framework. Any help or advice
would be appreciated. Here's Microsoft's HowTo on this:
http://support.microsoft.com/defaul...port/kb/articles/q190/3/51.asp&NoWebContent=1


Chris Lajoie
 
Hi Chris,

Check out the System.Diagnostics.Process class. It has members that let you
redirect StandardOutput, StandardError, and StandardInput.

Joe
 
Back
Top