Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to download all files from a folder of an FTP site
Message
From
13/10/2005 08:03:27
Raoshan Kumar
Softinfo Systems Pvt. Ltd.
New Delhi, India
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
How to download all files from a folder of an FTP site
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01058604
Message ID:
01058604
Views:
73
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
Next
Reply
Map
View

Click here to load this message in the networking platform