A simple trick is to make a batch file which launches the EXE with the
output redirected.... e.g.
SomeEXE.EXE>output.txt

Then you can load the output into the memo.

There must be an API way to do it to.  But in case you don't find a better
way... the above method works.

Jason

Blog.digitaltundra.com



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Rob Cameron
Sent: Tuesday, May 15, 2007 12:48 PM
To: [email protected]
Subject: Capturing responses from applications started in ShellExecute

I am using ShellExecute to run an executable from within a Delphi 
application. It works fine, but when I run the application in a command 
window, it generates a log - some hundreds of lines of text which is 
displayed in the window.  Can anyone tell me (or point me at a useful 
link) how to capture this text and, e.g. display it in a TMemo component?

Thanks

Rob
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to