procedure TForm1.Button2Click(Sender: TObject);
Var
List: TStringList;
iIndex, I: Integer;
StrFilename: String;
begin
List := TStringList.Create;
Try
FTP.List( List );
For iIndex := 0 to List.Count - 1do
begin
StrFilename := List[ iIndex ];
For I := Length( StrFilename ) downto 1 do
If StrFilename[ I ] = ' 'then
Break;
Delete( StrFilename, 1, I );
ListBox1.Items.Add( StrFilename );
End;
Finally
List.Free;
End;
end;
ps: probao sam dosta nacina, ali se niti jedan nije pokazao uspjesnim

[Ovu poruku je menjao Passwd dana 20.11.2005. u 19:00 GMT+1]