How to download/upload multiple files with FTP

How can I transfer multiple files using the FTP control/component?

Date Entered: 10/29/1997    Last Updated: 06/14/2004

In principle assign the correct values to RemoteHost, User and Password and then enter a for loop doing the transfer, for example:

FTP1.RemoteHost = ...
FTP1.User = ...
FTP1.Password = ...


for i = 0 to FileList.Count - 1
    FTP1.RemoteFile = FileList(i)
    FTP1.LocalFile = FileList(i)
next i


We appreciate your feedback.  If you have any questions, comments, or suggestions about this entry please contact our support team at