asked on
procedure TUnit2.FTPDownload();
var vFTP: TIdFTP;
begin
vFTP := TIdFTP.Create(); //initialize FTP
try
vFTP.Host := 'host';
vFTP.Username := 'username';
vFTP.Password := 'password';
vFTP.Connect;
vFTP.Get('remote', 'local');
vFTP.Disconnect;
finally
vFTP.Free;
end;
showmessage('Download completed');
end;
Delphi is the most powerful Object Pascal IDE and component library for cross-platform Native App Development with flexible Cloud services and broad IoT connectivity. It provides powerful VCL controls for Windows 10 and enables FMX development for Windows, Mac and Mobile. Delphi is your choice for ultrafast Enterprise Strong Development™. Look for increased memory for large projects, extended multi-monitor support, improved Object Inspector and much more. Delphi is 5x faster for development and deployment across multiple desktop, mobile, cloud and database platforms including 32-bit and 64-bit Windows 10.
TRUSTED BY
ASKER
Config file
FTP.remote = remotefilename
FTP.local = localfilename
how can i call config file and call the filename