October 17, 2018
Hot Topics:

Using the Internet Transfer Control: Part 3

  • November 20, 2002
  • By Sam Huggill
  • Send Email »
  • More Articles »

Just think back to the last time that you used an FTP program. What is the first thing it does after connecting? Show a list of all the directories and files in the default directory. This can be done using a DIR command and some clever stuff in the Inet's StateChanged event.

Here are some of the commands that you will be using when you FTP into a server:

CD - Change directory
CDUP - Change to the parent directory. The same as "CD .."
DELETE - Deltes a file
DIR - Retrieves the current directory listing
GET - Retrieves a file
MKDIR - Makes a new directory
PUT - Uploads a file
PWD - Sends a password
QUIT - Ends an FTP session
RECV - The same as GET
RENAME - Renames a file
RMDIR - Deletes a directory
SEND - Same as PUT
SIZE - Retrieves the size of a file

This is all very well and true, but how do I actually connect and get the contents of the root directory? Lets find out.

Page 3 of 6

Comment and Contribute


(Maximum characters: 1200). You have characters left.



Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

By submitting your information, you agree that developer.com may send you developer offers via email, phone and text message, as well as email offers about other products and services that developer believes may be of interest to you. developer will process your information in accordance with the Quinstreet Privacy Policy.


Thanks for your registration, follow us on our social networks to keep up-to-date