Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 04-10-2017, 11:42 AM
robert robert is offline
Senior Member
 
Join Date: Sep 2014
Posts: 375
Default DOS Output

I am having problem to get Real Time Output from Dos in Delphi

I use

Code:
GetDosOutput(Cmd: String): String;


and when I use it


Code:
procedure TForm1.Button1Click(Sender: TObject);
begin
  Memo1.Text := GetDosOutput(Edit1.Text);
end;
When Complete Process is done then the Memo1 is showing its OUtput.
is there any way to get output while processing.

But when I use the similar command in Command Prompt it gives line by line output, but not in Delphi memo

Any other Function or Procedure ?

Last edited by robert; 04-10-2017 at 11:48 AM.
  #2  
Old 04-10-2017, 12:22 PM
Jasser Jasser is offline
Moderator
 
Join Date: Jan 2005
Location: Saudi Arabia
Posts: 5,056
Default

I don't think this can be done in Real Time.
__________________
Regards,
Abdulaziz Jasser
  #3  
Old 04-10-2017, 12:29 PM
robert robert is offline
Senior Member
 
Join Date: Sep 2014
Posts: 375
Default

Quote:
Originally Posted by Jasser View Post
I don't think this can be done in Real Time.
So there is no way to get line by line output in Memo while process is going on.
  #4  
Old 04-10-2017, 03:12 PM
rojam rojam is offline
Senior Member
 
Join Date: Jun 2015
Posts: 165
Default

Which version of GetDOSOutput are you using? The one found here? If you want to update the memo as output is received, you'll need to convert this FUNCTION to a PROCEDURE and append the text to the memo as it's received.
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 10:38 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.