Sometime we need to show command line operations in our applications. This is possible using windows pipes. Below a unit implementing a memo that gets a bat file exit:
unit UnMemoConsole; // Code adapted from msdn: // http://msdn.microsoft.com/en-us/library/windows/desktop/ms682499%28v=vs.85%29.aspx interface uses System.Classes, System.SysUtils, Vcl.Forms, Vcl.StdCtrls, Winapi.Windows; const BUFFER_SIZE = 4096; type TMemoThread = class(TThread) private Memo: TMemo; Pipe: THandle; pi: T...