Using FTP to transfer a file to a server

The following is a listing of the session used to transfer a file called test.txt from a directory called temp on drive C of my laptop to a sub-directory called temp on sws.csudh.edu.

Connect to server and login

C:\USERS\LARRYP~1>ftp sws.csudh.edu
Connected to sws.csudh.edu:
220-Microsoft FTP Service
    CSU Dominguez Hills
220 Student Web Server
User (sws.csudh.edu:(none)): lpress
331 Password required for lpress.
Password:
230 User lpress logged in.
Create the "temp" sub-directory on the server and change into it. Use pwd to be sure it worked:
ftp> mkdir temp
257 "temp" directory created.
ftp> cd temp
250 CWD command successful.
ftp> cd temp
250 CWD command successful.
ftp> pwd
257 "/lpress/temp" is current directory.
Change to the temp directory on the client and transfer the file to the server:
ftp> lcd c:\temp
Local directory now C:\temp.
ftp> put test.txt
200 PORT command successful.
150 Opening ASCII mode data connection for test.txt.
226 Transfer complete.
ftp: 20 bytes sent in 0.00Seconds 20.00Kbytes/sec.
ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
09-28-08  09:22PM                   20 test.txt
226 Transfer complete.
ftp: 49 bytes received in 0.00Seconds 16.33Kbytes/sec.
ftp> quit
221
C:\USERS\LARRYP~1>
(To capture the contents of the command window, right click on it and issue the select all command. The window will turn white. Then hit the enter key to copy the selection to the clipboard.)

Disclaimer: The views and opinions expressed on unofficial pages of California State University, Dominguez Hills faculty, staff or students are strictly those of the page authors. The content of these pages has not been reviewed or approved by California State University, Dominguez Hills.