Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to download all files from a folder of an FTP site
Message
 
À
13/10/2005 08:03:27
Raoshan Kumar
Softinfo Systems Pvt. Ltd.
New Delhi, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01058604
Message ID:
01058937
Vues:
21
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                   && icFTP
>	.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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform