4
votes
Vote UpVote

Capturing console output with Delphi 2010/XE

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 := ...
Favorite? Off-Topic? Jordi Coll Corbilla @ 2011-07-04 01:24

Statistics

Visits: 1026
Votes: 4
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Jeroen Pluimers
Jordi Coll Corbilla
Yogi Yang
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)