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
De
13/10/2005 08:03:27
Raoshan Kumar
Softinfo Systems Pvt. Ltd.
New Delhi, Inde
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Titre:
How to download all files from a folder of an FTP site
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:
01058604
Vues:
77
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform