[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
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.
Re: Process question and Redirecting Standard Output
Ta jmc, I'll take a look.
chem
Re: Process question and Redirecting Standard Output
Do you have a link handy jmc?
Cheers,
chem
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.
Re: Process question and Redirecting Standard Output
Thanks jmc, I found it.
I managed to get it working in C#. Cheers :)
chem