I have some files on an FTP server on Hostinger, and these files have been left there since links from FTP servers never change. As they are very important to make updates to my application, Delphi should download them.
I have some files on an FTP server on Hostinger, and these files have been left there since links from FTP servers never change. As they are very important to make updates to my application, Delphi should download them.
You can do with the TIdFTP component. Ex.:
IdFTP1.Disconnect();
IdFTP1.Host := 'ftp.seuftp.com';
IdFTP1.Port := 21;
IdFTP1.Username := 'usuario';
IdFTP1.Password := 'senha';
IdFTP1.Passive := true;
IdFTP1.Connect(true, 10000);
IdFTP1.Get (arquivoNoServidor, arquivoDestino, true, false);