Random thoughts on coding – This new method supersedes the previous one using TDosCommand. It's been tested and it works with Delphi 2010 and Delphi XE, so it's worth to give it a try. It's really easy to use and I'm preparing a little tool with it.procedure CaptureConsoleOutput(const ACommand, AParameters: String; AMemo: TMemo);const CReadBuffer = 2400;var saSecurity: TSecurityAttributes; hRead: THandle; hWrite: THandle; suiStartup: TStartupInfo; piProcess: TProcessInformation; pBuffer: array [0 .. CReadBuffer] of AnsiChar; dRead: DWord; dRunning: DWord;begin saSecurity.nLength := ...
Visits by Source
Users who voted for this posting
Jordi Coll Corbilla