|
-
June 30th, 2007, 09:51 PM
#1
Capture console output in real-time. Help!
Hello
I am building a Windows application that, at some point, calls a separate process (a command line application). The latter takes quite some time to complete (about 5 minutes or more). How can I capture the console app's output in order to show it (in a textbox for instance) in my windows application?
Please note that I don't want the console app's whole output after it's completed. I want to capture its console output while it's producing it.
Thanks.
-
June 30th, 2007, 10:41 PM
#2
Re: Capture console output in real-time. Help!
You can use the old DOS > text.txt to send output to a file.
It's called the pipe character. >> appends, while > creates.
-
June 30th, 2007, 11:37 PM
#3
Re: Capture console output in real-time. Help!
Bogdan
If someone helped you then please Rate his post and mark the thread as Resolved
Please improve your messages appearance by using tags [ code] Place your code here [ /code]
-
July 1st, 2007, 03:53 AM
#4
Re: Capture console output in real-time. Help!
Take a look at BeginOutputReadLine Method of the process class.
Last edited by Shuja Ali; July 1st, 2007 at 03:58 AM.
Reason: Corrected the URL Tag
-
July 1st, 2007, 07:53 AM
#5
Re: Capture console output in real-time. Help!
 Originally Posted by creatorul
 Originally Posted by Shuja Ali
Thanks guys, I haven't tried it yet but I'm pretty sure this is what I've been looking for. You were of great help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|