INFO100, Introductory Visual Basic

Uploading to and Downloading from the Ftp Site

Professor Mike Dawdy's main internet site is at

pc-16872.on.rogers.wave.ca

it is running a web server, an ftp server, and a time server which updates the system clock from the U. S. Naval Observatory [USNO] twice daily; it is usually available 24 hours per day; it is occasionally unavailable for short periods of time.

There is a mirror site at

infotech.fanshawec.on.ca

this mirror site should be used for sending assignments only if the main site is unavailable and the due date/time for the assignment is imminent.

Before beginning this procedure you will need to have completed your project and to have stored all of the project files into one zip file; by the end of this procedure you will have uploaded that zip file to the appropriate folder on the ftp site.

The procedure for downloading is similar to that for uploading except that you use the get command instead of the put command at step 10 below. You can use the mget [multiple get] command with the * wildcard to download multiple files; the filenames are case sensitive.

  1. connect to pc-16872.on.rogers.wave.ca using the WinNT or Win95 ftp client, and login; you may optionally use WsFtp, CuteFtp, or any other ftp client, but you will have to configure it appropriately
    choose Start | Run | Ftp
    type the command: Open pc-16872.on.rogers.wave.ca
    User: vb1
    PassWord: vb1
  2. you are automatically placed in a folder named vb1; you may optionally verify this by typing the print working directory pwd command
    pwd
  3. optionally type a dir command to view the available folders; there should be one named DnLoad and one named UpLoad; the dnload folder contains a copy of the cd that comes with the text, the service pack 2 file from Microsoft for vb5, and from time to time some other files of interest to students in my vb1 classes
    dir
  4. to send your zip file you need to access the upload folder; use a cd command to change to the folder UpLoad
    cd upload
  5. optionally type a dir command to view the available folders; there is one for each project [P1a, P1b, etc]
    dir
  6. use a cd command to change to the appropriate folder for the assignment you are uploading; for example,
    cd p1a
  7. optionally type a dir command to view the file names currently in this folder; these files are protected against deleting or overwriting; you cannot upload a file with a name that has already been used; from a WinNT machine, but not Win95, you can modify the ftp window properties so that you can scroll through the directory
    dir
  8. set binary mode for the file transfer; this is very important
    bin
  9. use the lcd command to change the local directory to whatever Drive:\Dir you wish to upload from; in g1012, if your project zip file is in the root directory of drive f:, then you would use
    lcd f:\
  10. use the put command to upload the file; if it is named gmdaw12345.zip then the upload command is
    put gmdaw12345.zip
  11. wait for the file transfer to complete
  12. use a dir command to view the files in the ftp folder to verify that your upload has succeeded; check that your file name is in the directory listing, and check the file size; from a WinNT machine, but not Win95, you can modify the ftp window properties so that you can scroll through the directory
    dir
  13. use a bye command to end your ftp session
    bye