Xceed FTP Library Documentation
QuickTour sample application for Visual C++ 6-7
Sample applications > QuickTour sample application for Visual C++ 6-7

Introduction

The QuickTour sample application is a console application that allows you to run Xceed FTP Library methods through a command-line interface. It demonstrates various major Xceed FTP Library methods, as well as how to perform an event sink in order to handle events.

Registered users of the Xceed FTP Library can use this sample application, or portions of it, in their own commercial or private applications, royalty-free.

Source code location

SAMPLES\VISUAL C++ 6-7\QuickTour

How to use

To use the sample, load the QuickTour.DSP project file, then open theQuickTour.CPP file, modify the #defines at the beginning in order to specify the correct FTP server, port, username and password to log in. Next, compile the program in order to obtain an executable. From a command window you can now run the MethodDemo.exe program (probably created in a "Debug" folder). When no command-line parameters are specified, the program will display the possible commands. Try running the program with the "–list \" command line parameters. This will cause the program to connect to the hard-coded FTP server, obtain and display the folder listing (for root) and then disconnect. Example (for ftp server ftp.cdrom.com):

C:\test\> simpleftp –list \

[File] RATECARD.TXT

[File] README

[File] UPLOADS.TXT

[Dir ] archive-info

[Link] catalog.txt

[Link] config.txt

[Dir ] etc

[Dir ] pub