|
-
May 27th, 2008, 10:16 PM
#1
Thread Starter
G&G Moderator
[RESOLVED] Process question and Redirecting Standard Output
Hi all,
I am trying to run a command line program from my GUI application, and capture the output.
Currently, it all works fine, but it only captures the output after the process exists.
Is there a way, to check the standard output while the process is running? I've spawned a separate thread for this, but currently it still waits for the process to exit.
So, instead of getting a whole heap of text dumped at the end, I want to grab the text as it becomes available.
Any help or links are appreciated.
Cheers,
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
-
May 27th, 2008, 10:22 PM
#2
Re: Process question and Redirecting Standard Output
I'm not sure whether it will address your issue or not but gigemboy has posted code that will redirect standard output in the VB.NET CodeBank forum. It might be worth a look.
-
May 27th, 2008, 10:43 PM
#3
Thread Starter
G&G Moderator
Re: Process question and Redirecting Standard Output
Ta jmc, I'll take a look.
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
-
May 27th, 2008, 10:57 PM
#4
Thread Starter
G&G Moderator
Re: Process question and Redirecting Standard Output
Do you have a link handy jmc?
Cheers,
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
-
May 27th, 2008, 11:29 PM
#5
Re: Process question and Redirecting Standard Output
Just go to the VB.NET CodeBank forum and sort by Thread Starter. Gig's stuff will be on about page 3.
-
May 28th, 2008, 05:33 AM
#6
Thread Starter
G&G Moderator
Re: Process question and Redirecting Standard Output
Thanks jmc, I found it.
I managed to get it working in C#. Cheers 
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
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
|