Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FTP Functions?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00811526
Message ID:
00811564
Views:
17
This message has been marked as the solution to the initial question of the thread.
Hi Fabian,

There are several ways of accessing FTP servers.

1) Using Microsoft WinInet library, presented by WinInet.Dll file normally found on any Windows machine. This library contains a large set of Internet function, and FTP functions as well:
FtpCommand   
FtpCreateDirectory   
FtpDeleteFile   
FtpFindFirstFile   
FtpGetCurrentDirectory   
FtpGetFile   
FtpGetFileSize   
FtpOpenFile   
FtpPutFile   
FtpRemoveDirectory   
FtpRenameFile   
FtpSetCurrentDirectory  
Here is MSDN link to WinInet library
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/wininet_functions.asp

FoxPro is able to use all these functions.
FoxPro code samples on http://www.news2news.com/vfp :

FTP Class for Visual FoxPro application

Retrieving complete list of folders and files on an FTP server

Using FtpCommand

Downloading files from the FTP server using InternetReadFile

How to download a file from the FTP server using FtpGetFile

Uploading file to the FTP server using InternetWriteFile

Uploading file to the FTP server using FtpPutFile

Retrieving list of files on the FTP directory

Retrieving the size of a remote file

Deleting a file stored on the FTP server

Creating a directory on the FTP

Removing FTP directory

* * *
2) Using Winsock API library. Wisock calls can be very efficient way to access FTP servers. Normally this library is installed on any Windows computer.

FoxPro code sample:
Winsock: retrieving directory listing from an FTP server using passive data connection (FTP, port 21)

3) Using Winsock ActiveX control. Check this link SAMPLE: Use the Winsock ActiveX Control with Visual FoxPro.

4) Using third party controls and libraries, for example the West Wind Client Tools.

6) Using the good old FTP utility -- just type FTP in Windows Start - Run. This utility is able to work in batch mode, sometimes it is good enough.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform