(1) Simple method:
In a batch file;
SomeDOSProgram > SomeFile
Then when the batch file terminates, read the contents of SomeFile.
(2) More sophisticated way:
Redirect the standard output and standard error (with inheritable handles)
and CreateProcess SomeDOSProgram. When SomeDOSProgram terminates, read the
redirected files.
I have both methods, and they both work. (1) is probably simpler and is
good as a quick hack.
Hope this helps,
Dennis.
-----Original Message-----
Hi all.
I have a wee windows console app.
it works fine, but it outputs data when it gets executed.
Is there a way I can get the data that gets output and return in to say, an
edit box or a memo field ??
cheers,
Jeremy Coulter (manager)
Visual Software Solutions
110 Harewood Road
Christchurch
ph +64 3 3521595
fx +64 3 3521596
cell +21 2533214
http://www.vss.co.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz