Web Site Design & Development, Hosting Services
  About
  Site Design
  Hosting
  Support
  Contact Us
  Home
Support - FTP
 

How to use ftp in a Command Prompt window to transfer a file to your web site

 

The FTP command is the user interface to the Internet standard File Transfer Protocol (FTP). FTP transfers files to and from a remote network site.

 

Open a MS-DOS or Command Prompt window

  1. Choose the type of file below that you want to ftp
  2. Enter the commands in red listed under that type in your DOS Window
for all examples substitute your domain name for "yourdomain.com" and substitute your account name (logon) for "yourlogon"
  • How to transfer a plain text html file (i.e. hello.html) to yourdomain.com into account: yourlogon.
  • How to create a directory (i.e. Images) on yourdomain.com, in account: yourlogon.
  • How to transfer a image file (i.e. msdos2.gif) to yourdomain.com into account: yourlogon.
  • How to transfer a program file (i.e. showVars.pl) to directory cgi-bin in account: yourlogon.
 

Plain text file transfer:

>ftp yourdomain.com
Connected to yourdomain.com.
220 proFTP 1.2.0 server (proFTP) [sites.tristellar.net]
User (yourdomain.com:(none)): yourlogon
331 Password required for yourlogon.
Password: xxxxxx
230 User yourlogon logged in.
ftp> ascii
200 Type set to A.
ftp> put hello.html
200 PORT command successful.
150 Opening BINARY mode data connection for hello.html
226 Transfer complete.
local: hello.html remote: hello.html
6 bytes sent in 0.0013 seconds (4.4 Kbytes/s)
ftp> quit
221 Goodbye

 

Creating a directory Images

>ftp yourdomain.com
Connected to yourdomain.com.
220 proFTP 1.2.0 server (proFTP) [sites.tristellar.net]
User (yourdomain.com:(none)): yourlogon
331 Password required for yourlogon.
Password: xxxxxx
230 User yourlogon logged in.
ftp> mkdir Images
257 MKD command successful.
ftp> quit
221 Goodbye

 
Image file transfer to Images directory:

>ftp yourdomain.com
Connected to yourdomain.com.
220 proFTP 1.2.0 server (proFTP) [sites.tristellar.net]
User (yourdomain.com:(none)): yourlogon
331 Password required for yourlogon.
Password: xxxxxx
230 User yourlogon logged in.
ftp> binary
200 Type set to I.
ftp> put msdow2.gif
200 PORT command successful.
150 Opening BINARY mode data connection for msdos2.gif
226 Transfer complete.
Local: msdos2.gif remote: msdos2.gif
6 bytes sent in 0.0013 seconds (4.4 Kbytes/s)
ftp> quit
221 Goodbye

 

Program file transfer to directory CGI-bin

>ftp yourdomain.com
Connected to yourdomain.com.
220 proFTP 1.2.0 server (proFTP) [sites.tristellar.net]
User (yourdomain.com:(none)): yourlogon
331 Password required for yourlogon.
Password: xxxxxx
230 User yourlogon logged in.
ftp> ASCII
200 Type set to A.
ftp> cd CGI-bin
250 CWD command successful.
ftp> put showVars.pl
200 PORT command successful.
150 Opening BINARY mode data connection for showVars.pl.
226 Transfer complete.
Local: showVars.pl remote: showVars.pl
506 bytes sent in 0.016 seconds (30.04 Kbytes/s)
ftp> quote site chmod 755 showVars.pl
200 CHMOD command successful.
ftp> quit
221 Goodbye

Acceptable Use Agreement Copyright 1999-2008 TriStellar.com, LLC