Rob, Take a look at code at http://maxxdelphisite.free.fr/doscmd.htm. A couple of years back I used this as the basis for code that I think does what you want - runs a command-line program and shows the stdout in a TMemo.
HTH Walter At 01:48 PM 5/15/2007, you wrote: >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

