Gareth,
    Oddly enough, I'm coding a tool ,as I write this, to do the exact same thing. Currently I have DOS .bat files running on an NT scheduler collecting data of an FTP server. I wanted to add more functionality to it with error checking so I'm writing it in MS C++. Windows uses the WinInet.dll to do FTPs with Internet Explorer. I'm sure you can call it from MapBasic like any other Windows API, listing the files, pulling down what you want, then deleteing them. I'm planning on adding the functionality for the user to pull down data when the scheduler isn't running the app, in case of an emergency. Let me know how it turns out. Maybe I'll port the code to MB instead of trying to work with calls between C++ and MI.

Dion Duran
Sr System Developer
Network Operations
Metricom, Inc.
[EMAIL PROTECTED]

-----Original Message-----
From: Gareth Hardman [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 06, 2000 8:13 AM
To: [EMAIL PROTECTED]
Subject: MI-L using ftp from within an application

Hi there,
 
My application needs to access data from an our ISP's FTP site. Now I can manually use FTP software to download the files to the required directory on the local machine.
 
However I would ideally like make a WinAPI-like call from within the application that opens an internet connection, accesses the FTP area and then downloads the data to a user-defined directory. The variables here will be the location of the FTP site, the actual directory within this site, the data files within the site and the directory to where these files need to be transfered. I would also like to then delete the files resident at the FTP site.
 
I maybe asking for too much maybe......?!
 
 
Gareth Hardman
--------------------------
Saturn Technologies
Tel: +44 (0) 7000 143143
Fax: +44 (0) 7000 143000
www.saturn-technologies.com

Reply via email to