|
-
Aug 20th, 2008, 01:44 PM
#1
[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?
-
Aug 20th, 2008, 01:55 PM
#2
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.
-
Aug 20th, 2008, 01:56 PM
#3
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
-
Aug 20th, 2008, 02:47 PM
#4
Re: [2008] Displaying what a program outputs
Thanks guys, I figured it out
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
|