Transfers files to or from a computer running the FTP Server service.


ftp [-v] [-n] [-i] [-d] [-g] [-s:filename] [-a] [-w:windowsize] [hostname]



Uses any local interface for the endpoint of the FTP data connection. (The FTP data connection is used to transfer files and is different from the FTP control connection, which sends FTP commands between the client and server.)


Enables debugging mode, which displays all FTP commands sent between the client and server.


Disables globbing (filename expansion) so that wildcards can be used within local paths and filenames without being interpreted by the shell.


Disables interactive prompting when multiple files are being transferred.


Disables autologon to establish a control connection with the remote host but nothing else.


Executes a series of FTP commands stored in a text file as a batch job.


Specifies the amount of data that can be transferred before requiring that the receiving end issue a confirmation. The default transfer buffer size is 4,096 bytes.


Disables showing responses of remote FTP connections.


Identifies the computer name (DNS or NetBIOS name) or IP address of the remote computer you want to connect to using FTP (this must be the last parameter on the line).


You can select from a whole separate set of FTP-specific commands when you run ftp in interactive mode. Here are some of the more commonly used:


Escapes from an interactive FTP session to the command ...

Get Windows Server 2003 in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.