Home All Groups Group Topic Archive Search About

Get console app output into a VB app.

Author
16 Sep 2006 1:00 AM
Ray Cassick (Home)
I am planning to run a console based C++ application (I do not have the
source for) as a hidden process form my VB.NET application and was wondering
if there is a simpler way to get the output of the console application into
a text box on by VB.NET form other than just having the consoles output sent
to a file and then open and read in the file.

--

Author
16 Sep 2006 10:43 AM
Herfried K. Wagner [MVP]
"Ray Cassick (Home)" <rcassickNOSPAM@enterprocity.com> schrieb:
> I am planning to run a console based C++ application (I do not have the
> source for) as a hidden process form my VB.NET application and was
> wondering if there is a simpler way to get the output of the console
> application into a text box on by VB.NET form other than just having the
> consoles output sent to a file and then open and read in the file.

<URL:http://dotnet.mvps.org/dotnet/samples/misc/#RedirectConsole>
-> "RedirectConsole.zip"

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
17 Sep 2006 5:13 PM
Ray Cassick (Home)
Thanks. That was exactly what I was looking for.

Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:eOc0tzX2GHA.1288@TK2MSFTNGP03.phx.gbl...
> "Ray Cassick (Home)" <rcassickNOSPAM@enterprocity.com> schrieb:
>> I am planning to run a console based C++ application (I do not have the
>> source for) as a hidden process form my VB.NET application and was
>> wondering if there is a simpler way to get the output of the console
>> application into a text box on by VB.NET form other than just having the
>> consoles output sent to a file and then open and read in the file.
>
> <URL:http://dotnet.mvps.org/dotnet/samples/misc/#RedirectConsole>
> -> "RedirectConsole.zip"
>
> --
> M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
> V B   <URL:http://classicvb.org/petition/>