ServicesTech SupportResourcesWeb E-mailSearch the InternetSite Map
Back to AlaNet's Homepagebanner_bottom_middle.gif (1373 bytes)V.90 Information
Your Web Site
Back to Your Web Site
side_cap.gif (806 bytes)

Posting Personal Web Pages on AlaNet

Windows 95 FTP Client Command Reference


This is NOT a complete list of the available commands. Some commands have been omitted because they are not used very much or are too technical for this tutorial. The listed commands are in alphabetical order.

Also look at example code for common tasks.

Command: !
Syntax: !
Description: Go back to DOS or Windows/Exit FTP
Example: !

Command: ?
Syntax: ?
? command
Description: Display FTP Client help. ? displays a list of commands. ? command displays a description about that command.
Example: ? mkdir

Command: append
Syntax: append source-filename destination-filename
Description: Appends the contents of source-filename to destination-filename.
Example: append myfile.txt index.html

Command: ascii
Syntax: ascii
Description: Set transfer mode to ascii text mode. You need to specify this before transferring text based files (HTML, text, etc).
Example: ascii

Command: bell
Syntax: bell
Description: Turn on or off bell mode. When bell mode is on, a bell will sound when a command is finished executing.
Example: bell

Command: binary
Syntax: binary
Description: Set transfer mode to binary. A binary file is any besides a text based file. Graphics, audio, video, several wordprocessor files, etc are usually binary files.
Example: binary

Command: bye
Syntax: bye
Description: Quit FTP and go back to DOS or Windows
Example: bye

Command: cd
Syntax: cd directory-name
Description: Change remote directory. This is the directory on the server.
Example: cd .. (change to parent directory)
cd public_html (change to public_html directory)

Command: close
Syntax: close
Description: Terminates current FTP connection, but does not exit to DOS/Windows. You can actually use the open command to open another connection.
Example: close

Command: delete
Syntax: delete file-name
Description: Delete a file on the server.
Example: delete oldfile.html

Command: debug
Syntax: debug
Description: Turn on/off debugging mode. When debugging mode is on, commands to the server are echoed while they are being executed.
Example: debug

Command: dir
Syntax: dir
dir directory-name
Description: First syntax gives the listing of the current remote (server) directory. The second syntax gives the directory listing for the specified directory-name on the server.
Example: dir
dir public_html

Command: disconnect
Syntax: disconnect
Description: Terminates current FTP connection, but does not exit to DOS/Windows. You can actually use the open command to open another connection. It basically does the same thing as the close command.
Example: disconnect

Command: get
Syntax: get source-file-name
get source-file-name destination-file-name
Description: Retrieve a file from the server. The file will be saved to the current local directory (your computer). The first syntax will retrieve the source-file-name from the server and save the file with the same to the local computer. The second syntax will allow you to specify the name of the saved file on your harddrive.
Example: get index.html
get index.html index.bak

Command: help
Syntax: help
help command
Description: Does the same thing as ?
Example: help
help mkdir

Command: lcd
Syntax: lcd
lcd directory-name
Description: Change local working directory (your computer). First syntax simply returns the name of the current local directory. The second syntax will change the local working directory to the specified directory-name.
Example: lcd
lcd c:\mywebsite

Command: mdelete
Syntax: mdelete file1 file2 ... etc.
Description: Delete multiple files. You can list all the files you want to delete -- each filename must be separated by a single space. File names can contain wild characters for matching a large number of files. NOTE: If you have prompt turned on, then it
Example: mdelete index.old index.back oldgraphic.gif
mdelete *.*
mdelete *.gif *.html

Command: mget
Syntax: mget file1 file2 file3 etc...
Description: Retrieve multiple files. You can list all the files you want to retrieve -- each file name must be separated by a single space. File names can contain wild characters for matching a large number of files. The files will be saved with the same name on the local computer in the current local working directory. NOTE: If prompt is turned on, FTP will ask you to confirm each file to retrieve.
Example: mget index.html mypict.gif logo.jpg
mget *.*
mget *.jpg *.gif

Command: mkdir
Syntax: mkdir directory-name
Description: Creates a directory on the server (remote computer).
Example: mkdir public_html

Command: mput
Syntax: mput file1 file2 file3 etc...
Description: Send (upload) multiple files. You can list all the files you want to send -- each file name must be separated by a single space. File names can contain wild characters for matching a large number of files. The files will be saved with the same name on the remote computer in the current working directory. NOTE: If prompt is turned on, FTP will ask you to confirm each file to send.
Example: mput index.html main.gif logo.jpg
mput *.*
mput *.gif *.html

Command: open
Syntax: open
open ftp-server-name
Description: Open an FTP session (connection). The first syntax will prompt you for the ftp-server-name, while they second syntax specifies this information in the command.
Example: open downtown.ala.net

Command: prompt
Syntax: prompt
Description: Turns on/off prompting for multiple commands (mput, mget, mdelete). Default action is on. This means that FTP will ask you to confirm each file that being deleted, sent, or recieved by mdelete, mput, and mget commands (respectively).
Example: prompt

Command: put
Syntax: put source-file
put source-file destination-file
Description: Sends or uploads one file. The first syntax will send the source-file from the local current directory (your computer) to the current working remote directory (server) and save the file with the same name. The second syntax does the same except it will save the file as destination-file on the server. This is like uploading the file and then renaming it on the server in one command.
Example: put logo.gif
put index.htm index.html

Command: pwd
Syntax: pwd
Description: Print Working Directory. This displays the path or directory of the current working directory on the remote computer (server). The current working directory is the directory that all file transfer commands (get, put, send, recv, delete, mput, mget, mdelete) work with (or in relation to).
Example: pwd

Command: quit
Syntax: quit
Description: Terminate current FTP session and go back to DOS or Windows. Does the same thing as the ! command.
Example: quit

Command: recv
Syntax: recv source-file
recv source-file destination-file
Description: Recieves one file. Does the same thing as the get command.
Example: recv logo.gif
recv index.html index.htm

Command: rename
Syntax: rename old-filename new-filename
Description: Renames a file from old-filename to new-filename on the remote computer (server).
Example: rename index.htm index.html

Command: rmdir
Syntax: rmdir directory-name
Description: Remove (delete) a directory on the remote computer (server). This requires that the directory first be empty (no files within the directory) before it can be removed.
Example: rmdir testdir

Command: send
Syntax: send source-file
send source-file destination-file
Description: Sends one file to the server. Does the same thing as the put command.
Example: send myfile.html
send myfile.html newname.html

Table of Contents

Last Updated: Thursday, March 25, 1999

spacer.gif (53 bytes)