Transfer Files to and from an FTP Server

Thursday Jun 13th 2002 by Vinoj Kumar
Share:

Transferring files to and from the server is easily automated using MFC classes. This article provides the full source code to do file transfers from and to the FTP servers.



Click here for a larger image.

Environment: Visual C++

Transferring files to and from the server is easily automated using MFC classes. Here I have provided the full source code to do file transfers from and to the FTP servers. I have provided and arranged the code in such a way that it is possible to transfer a complete directory or drive to the server.

The application that transfers the files will give a list of local drives in the system. After you Connect to the FTP server, it connects to the root of the server. Then the root items can be expanded and the required file transfer can be performed. It resembles the Explorer window.

It uses the MFC class CFtpConnection and CInternetSession to achieve the file transfer.

Downloads

Download source -- 29 Kb
Share:
Home
Mobile Site | Full Site
Copyright 2017 © QuinStreet Inc. All Rights Reserved