CommandCompleted Event
Signifies completion of the command execution.
Syntax
type TCommandCompletedEvent = procedure ( Sender: TObject; const Command: String; ExitStatus: Integer; const ExitMessage: String; const ExitSignal: String ) of Object;
property OnCommandCompleted: TCommandCompletedEvent read FOnCommandCompleted write FOnCommandCompleted;
Remarks
Subscribe to this event to be notified about completion of the remote command execution. This event fires for every commandin the Commands list. The Command parameter indicates the command being completed.
ExitStatus specifies the command's return code. ExitMessage or ExitSignal parameters provide error details if the command execution was terminated forcefully,