Advertisement
Advertisement
| 04.12.2008 at 11:23AM PDT, ID: 23317604 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: |
var
i: Integer;
s: String;
path, MyListing: TStringList;
begin
with IdFTP1 do begin
Passive:=True;
if Connected then begin
MyListing:=TStringList.Create;
List(MyListing,ListView1.Selected.Caption,True);
for i:=0 to DirectoryListing.Count-1 do
with DirectoryListing[i] do
begin
Label1.Caption:='Downloading '+FileName+' ('+IntToStr(Size)+' bytes)';
Get(FileName, DestinationFolder+'\'+FileName, True, False);
progressbar1.Position:= 0;
end;
end;
//Disconnect;
end;
procedure TForm5.IdFTP1Work(ASender: TObject; AWorkMode: TWorkMode;
AWorkCount: Integer);
begin
ProgressBar1.Position:=AWorkCount;
Application.ProcessMessages;
end;
procedure TForm5.IdFTP1WorkBegin(ASender: TObject; AWorkMode: TWorkMode;
AWorkCountMax: Integer);
begin
ProgressBar1.Max:=AWorkCountMax;
end;
|