Go here: http://www.torry.net/pages.php?id=352
Look for: "Redirect Console" By Sonic. Sample which show how to redirect output and input of a console program. HTH - Chris -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Cameron Sent: 15 May 2007 18:48 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

