Re: How to capture console app output?
From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 02/18/04
- Next message: William Ryan eMVP: "Re: using XML to write output files"
- Previous message: Jon Skeet [C# MVP]: "Re: Only allow numbers in a textbox"
- In reply to: John: "How to capture console app output?"
- Next in thread: John: "Re: How to capture console app output?"
- Reply: John: "Re: How to capture console app output?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 18 Feb 2004 18:46:35 -0000
John <john-nospam@pursca.com> wrote:
> In Win App, I used Process class to start a new console appliaction, is it
> possible to capture the console output and display them in a textbox?
Yes - you need to redirect the output to a stream. See the
RedirectStandardOutput and RedirectStandardError properties of
ProcessStartInfo.
-- Jon Skeet - <skeet@pobox.com> http://www.pobox.com/~skeet If replying to the group, please do not mail me too
- Next message: William Ryan eMVP: "Re: using XML to write output files"
- Previous message: Jon Skeet [C# MVP]: "Re: Only allow numbers in a textbox"
- In reply to: John: "How to capture console app output?"
- Next in thread: John: "Re: How to capture console app output?"
- Reply: John: "Re: How to capture console app output?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|