I just changed my search on torry.net from 'command line output' to 'console
output' and it made the world of difference.  Looking at the code it
basically does as you describe.

Thanks though.


Nahum.
IFE

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Corey Murtagh
> Sent: Saturday, 24 January 2004 00:09 a.m.
> To: NZ Borland Developers Group - Delphi List
> Subject: Re: [DUG] Command Line Output
>
>
> Nahum.Wild wrote:
>
> > All,
> >
> > I'm doing a hunk of calls to a command line app and
> redirecting it's output
> > to file then reading in the file to see what it gave me.  I
> know that you
> > can capture that output directly (FinalBuilder does it), I
> just did a realy
> > quick search and didn't come up with anything.
> >
> > Does anyone have any pointers for me on this?
>
> There used to be an example program that showed how to do this...
> WinTools or somesuch.  It captures and displays the output of various
> commandline tools like grep.
>
> Basically what you need to do is create a pair of pipes and use the
> appropriate handles for stdin and stdout in a call to CreateProcess,
> then read the program's output from the read end of the stdout pipe.
> You can get away with just one pipe if the program isn't
> going to need
> input, which it sounds like it doesn't.
>
> I'd send you some sample code, but I'm a C++er so it likely
> wouldn't be
> all that useful to you.  If the example code isn't in the
> latest Delphi
> check your old CDs for it.
>
> --
> Corey Murtagh
> The Electric Monk
> "Quidquid latine dictum sit, altum viditur!"
>
> _______________________________________________
> Delphi mailing list
> [EMAIL PROTECTED]
> http://ns3.123.co.nz/mailman/listinfo/delphi
>

_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to