| Prev | Next
Menu: Products - Portfolio - Services - Download - Order - Company

 
Topic #1.1.1.1.
ASync Part II
   Introduction  
   Overview  
   New Classes  
   TwhAsyncAction  
   OnExecute  
   OnInit  
   OnFinish  
   OnDestroy  
   ExecuteDosCmd  
   Status Variables  
   ASync Download  
*

  

Browsing >>ExecuteDosCmd

procedure TdmAsyncDemo.ExecuteDosCmd(Sender: TObject);
var
  a1:string;
begin
  if assigned(Sender)
  and (Sender is TwhAsyncObject) then
  with TwhAsyncObject(Sender) do
    if not Done then begin
      try
        if assigned(Data) then
          with TThreadInput(Data) do
            a1:= GetDosOutput(DosCmd,GetStrProc) //ucPipe
        else begin
          a1:= ResultString;
          a1:= GetDosOutput(a1,nil);
          end;
      except on e:exception do begin
        ResultValue:=-1;
        a1:=e.message;
        end;
        end;
      ResultString:=a1;
      Done:=True;
      end;
end;


 
Path:  www.href.com to; Services to; Tech Talk Archive to; ASync Part II to; ExecuteDosCmd

Copyright © 1995-2012 HREF Tools Corp. All Rights Reserved Worldwide.
Running: WebHub-v2.167 compiled with d16_win32 on Microsoft-IIS/7.5,
Local Time: Wed, 23 May 2012 22:47:08.
Session 2092805004, 37 pages sent to CCBot/1.0 (+http://www.commoncrawl.org/bot.html) at 38.107.179.228;
Time to produce this page: 0msec.