[RESOLVED] [2008] Displaying what a program outputs
There is a command line program that I asked about how to make it execute stuff through vb.net
Well, this same program spits out text on the cmd prompt it is executed on. Is there a way vb.net can capture this text and display it?
Here's a simpler way to ask this. This program will show its results in a command prompt, but the command prompt disappears when it is done. Is there a way vb.net can get the text it shows before it disappears and write it to a text file?
http://i37.tinypic.com/2vl5ppt.jpg
Re: [2008] Displaying what a program outputs
If you are starting the process, you can redirect the standard output to a stream and then capture that stream.
Look into the ProcessStartInfo object to enable redirection.
Re: [2008] Displaying what a program outputs
you can redirect the output from a command line program using VB.NET.
Here is a sample article
http://www.devx.com/dotnet/Article/7914/0/page/5
Re: [2008] Displaying what a program outputs
Thanks guys, I figured it out :)