Thema: Delphi TDoscommand Probleme

Einzelnen Beitrag anzeigen

Klaus01
Online

Registriert seit: 30. Nov 2005
Ort: München
5.762 Beiträge
 
Delphi 10.4 Sydney
 
#2

Re: TDoscommand Probleme

  Alt 4. Jun 2009, 15:40
. wie omata schon oben geschrieben hat,
nutze doch onNewLine zur Ausgabe.

Zitat von http://maxxdelphisite.free.fr/doscmd.htm:
Execute a DOS program or batch file et get outputs (text in the console)
via an event OnNewLine(Sender: TObject; NewLine: string; OutputType: TOutputType).

You do not need to wait the end of the execution to get outputs, you get it line by line.
You can also send text to console input via the procedure SendLine(Value: string; Eol: Boolean).
Grüße
Klaus
Klaus
  Mit Zitat antworten Zitat