Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Coloboración Paypal con ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #6  
Antiguo 02-11-2015
gdlrinfo gdlrinfo is offline
Miembro
 
Registrado: may 2007
Posts: 131
Poder: 20
gdlrinfo Va por buen camino
Comparar por tamaño.-

Buenas he llegado a terminar el código dejándolo así:
Código Delphi [-]
begin
  FTP := TIdFTP.Create( nil );
  FTP.OnWork := IdFTPWork;
  FTP.Username := Usuario;
  FTP.Password := Pss;
  FTP.Host := ftph;
  A:=0;
   try
    FTP.Connect;
  except
    raise Exception.Create( 'No se ha podido conectar con el servidor ' + FTP.Host );
  end;
  //ProgressBar.max := FTP.Size(Lista.Strings[i]) div 1024;
  sigefa.ProgressBar.max := 100;
  if FTP.Connected then
     Begin
//showMessage('EstoyConectado a:'+ftp.Host);
   FTP.ChangeDir('/imagenes/credenciales/'+dir+'/');
   Lista := TStringList.create;
   FTP.List(Lista,'*.*',false);
    try
      for i := 0 to Lista.Count - 1 do
      begin
          if NOT FileExists('C:\Re\'+dir+'\' + Lista.Strings[i]) then
           Begin
           Label3.Caption:= Lista.Strings[i];
           Label3.Refresh;
           FTP.Get(Lista.Strings[i], 'C:\re\'+dir+'\' + Lista.Strings[i], true);
           A:=a+1;
           ProgressBar.Position:=100;
           End;
      end;
    finally
      FTP.Disconnect;
      FTP.Free;
      Lista.Free;
    end;
    ProgressBar.Position:=0;
    Label3.Caption:='....';
    Memo1.Lines.Add(FormatDateTime('hh:nn:ss', Now())+': Archivos de '+dir+' Descargados desde '+ftph+' Cantidad Total: '+InttoStr(A));
   End
  else
  BEGIN
      showmessage('No estoy conectado a:'+ftp.Host);
  END;


funciona de maravilla me gustaría saber si se puede comparar si algún archivo fue modificado y que lo actualice es decir modificado en el servidor.-
Desde ya muchas gracias
Responder Con Cita
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
descarga de URL jfadelphi HTML, Javascript y otros 1 28-02-2009 15:00:13
Ayuda con incompatibilidad del Post de TIdHTTP de Indy 8 con Indy 10 rolandoj Internet 13 24-12-2008 13:19:01
Indy - Detener descarga Omega Internet 3 07-08-2008 10:24:12
Como reemplazar Indy 10 por Indy 9 en Delphi 2007 ? rolandoj Internet 0 13-02-2008 18:44:31
donde descargar componentes Indy para Builder 6.0, instalcion y descarga JuanErasmo C++ Builder 1 03-08-2007 21:56:41


La franja horaria es GMT +2. Ahora son las 00:47:42.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi