There is an
MGET
ftp function. It may be part of the features you can access through your object.
>Hi All,
>
>I'm using MSINET.OCX to upload an download sales data to private FTP site.
>for a known file (with the help of GET command) it is ok to download a single file in one go.
>
>Is there any possibility to download all files in a particular folder from the FTP site.
>
>for downloading a single file I'm using the following code:
>
>
>WITH Thisform.oleFTP
> .RemoteHost = "www.myftpsite.com"
> .Protocol = 2
> .UserName = "myuser"
> .Password = "mypwd"
>
> cOldError = ON("ERROR")
> ON ERROR frmFtp.ErrorMethod()
> .Execute(,"GET /httpdocs/products/SALEDATA.ZIP C:\TEMP\SALEDATA.ZIP")
> ON ERROR &cOldError
>ENDWITH
>
>
>
>Here you can See, to download a file I have to specify the file name in the GET command, Now if there is more than 200 files on a particular folder on FTP, this is a very combersome task, so I just wanted to download all files.
>
>Thanks a lot
>
>Raoshan
Imagination is more important than knowledge