This is a list of the commands available when using the Microsoft Windows command-line FTP client (requires TCP/IP to be installed). All information is from the Windows NT help files. If you need to use the "raw" FTP commands instead of these interpreted commands (for example, if you're writing your own FTP client), please consult this list instead.
Syntax: ! [command]
Parameter(s):
command -
Specifies the command to run on the local computer. If command is omitted, the local command prompt is displayed; type "exit" to return to ftp.
Syntax: ? [command]
Parameter(s):
command -
Specifies the name of the command about which you want a description. If command is not specified, ftp displays a list of all commands.
Syntax: append local-file [remote-file]
Parameter(s):
local-file -
Specifies the local file to add.
remote-file -
Specifies the file on the remote computer to which local-file will be added. If remote-file is omitted, the local filename is used for the remote filename.
Syntax: ascii
Note
FTP supports two file transfer types, ASCII and binary image. ASCII should be used when transferring text files. See also binary.
In ASCII mode, character conversions to and from the network standard character set are performed. For example, end-of-line characters are converted as necessary, based on the target operating system.
Syntax: bell
Syntax: binary
Note
FTP supports two file transfer types, ASCII and binary image. Binary should be used when transferring executable files. In binary mode, the file is moved byte-by-byte. See also ascii.
Syntax: bye
Syntax: cd remote-directory
Parameter(s):
remote-directory -
Specifies the directory on the remote computer to change to.
Syntax: close
Syntax: debug
Syntax: delete remote-file
Parameter(s):
remote-file -
Specifies the file to delete.
Syntax: dir [remote-directory] [local-file]
Parameter(s):
remote-directory -
Specifies the directory for which you want to see a listing. If no directory is specified, the current working directory on the remote computer is used.
local-file -
Specifies a local file to store the listing. If not specified, output is displayed on the screen.
Syntax: disconnect
Syntax: get remote-file [local-file]
Parameter(s):
remote-file
Specifies the remote file to copy.
local-file
Specifies the name to use on the local computer. If not specified, the file is given the remote-file name.
Syntax: glob
Syntax: hash
Syntax: help [command]
Parameter(s):
command -
Specifies the name of the command about which you want a description. If command is not specified, ftp displays a list of all commands.
Syntax: lcd [directory]
Parameter(s):
directory -
Specifies the directory on the local computer to change to. If directory is not specified, the current working directory on the local computer is displayed.
Syntax: literal argument [ ...]
Parameter(s):
argument -
Specifies the argument to send to the FTP server.
Syntax: ls [remote-directory] [local-file]
Parameter(s):
remote-directory -
Specifies the directory for which you want to see a listing. If no directory is specified, the current working directory on the remote computer is used.
local-file -
Specifies a local file to store the listing. If not specified, output is displayed on the screen.
Syntax: mdelete remote-files [ ...]
Parameter(s):
remote-files -
Specifies the remote files to delete.
Syntax: mdir remote-files [ ...] local-file
Parameter(s):
remote-files -
Specifies the directory for which you want to see a listing. Remote-files must be specified; type "-" to use the current working directory on the remote computer.
local-file -
Specifies a local file to store the listing. Type "-" to display the listing on the screen.
Syntax: mget remote-files [ ...]
Parameter(s):
remote-files -
Specifies the remote file(s) to copy to the local computer.
Syntax: mkdir directory
Parameter(s):
directory -
Specifies the name of the new remote directory.
Syntax: mls remote-files [ ...] local-file
Parameter(s):
remote-files -
Specifies the files for which you want to see a listing. Remote-files must be specified; type "-" to use the current working directory on the remote computer.
local-file -
Specifies a local file to store the listing. Type "-" to display the listing on the screen.
Syntax: mput local-files [ ...]
Parameter(s):
local-files -
Specifies the local files to copy to the remote computer.
Syntax: open computer [port]
Parameter(s):
computer -
Specifies the remote computer to connect to. Computer can be specified by IP address or computer name (a DNS or HOSTS file must be available). If auto-login is on (default), FTP also attempts to automatically log the user in to the FTP server (see Ftp command-line options to disable auto-login).
port -
Specifies a port number to use to contact an FTP server.
Syntax: prompt
Syntax: put local-file [remote-file]
Parameter(s):
local-file -
Specifies the local file to copy.
remote-file -
Specifies the name to use on the remote computer. If not specified, the file is given the local-file name.
Syntax: pwd
Syntax: quit
Syntax: quote argument [ ...]
Parameter(s):
argument -
Specifies the argument to send to the FTP server.
Syntax: recv remote-file [local-file]
Parameter(s):
remote-file -
Specifies the remote file to copy.
local-file -
Specifies the name to use on the local computer. If not specified, the file is given the remote-file name.
Syntax: remotehelp [command]
Parameter(s):
command -
Specifies the name of the command about which you want help. If command is not specified, ftp displays a list of all remote commands.
Syntax: rename filename newfilename
Parameter(s):
filename -
Specifies the file you want to rename.
newfilename -
Specifies the new filename.
Syntax: rmdir directory
Parameter(s):
directory -
Specifies the name of the remote directory to delete.
Syntax: send local-file [remote-file]
Parameter(s):
local-file -
Specifies the local file to copy.
remote-file -
Specifies the name to use on the remote computer. If not specified, the file is given the local-file name.
Syntax: status
Syntax: trace
Syntax: type [type-name]
Parameter(s):
type-name -
Specifies the file transfer type; the default is ASCII. If type-name is not specified, the current type is displayed.
Note
FTP supports two file transfer types, ASCII and binary image.
ASCII should be used when transferring text files. In ASCII mode, character conversions to and from the network standard character set are performed. For example, end-of-line characters are converted as necessary, based on the destination's operating system.
Binary should be used when transferring executable files. In binary mode, the file is moved byte-by-byte.
Syntax: user user-name [password] [account]
Parameter(s):
user-name -
Specifies a user name with which to log in to the remote computer.
password -
Specifies the password for user-name. If not specified, but required, ftp prompts for the password.
account -
Specifies an account with which to log on to the remote computer. If account is not specified, but required, ftp prompts for the account.
Syntax: verbose