Updated: October 3, 2014
Applies To: Windows Vista, Windows Server 2008, Windows 7, Windows Server 2008 R2, Windows Server 2012 R2, Windows Server 2012, Windows 8
Transfers files to and from a computer running a File Transfer Protocol (FTP) server service. Ftp can be used interactively or in batch mode by processing ASCII text files. For examples of how this command can be used, see Examples.
ftp [-v] [-d] [-i] [-n] [-g] [-s:<FileName>] [-a] [-A] [-x:<SendBuffer>] [-r:<RecvBuffer>] [-b:<AsyncBuffers>][-w:<WindowsSize>] [-?] [<Host>]
Suppresses display of remote server responses.
Suppresses auto-login upon initial connection.
Disables file name globbing. Glob permits the use of the asterisk (*) and question mark (?) as wildcard characters in local file and path names. For more information, see Additional references.
Specifies a text file that contains ftp commands. These commands run automatically after ftp starts. This parameter allows no spaces. Use this parameter instead of redirection (<).
Specifies that any local interface can be used when binding the FTP data connection.
Logs onto the FTP server as anonymous.
Overrides the default SO_SNDBUF size of 8192.
Overrides the default SO_RCVBUF size of 8192.
Overrides the default async buffer count of 3.
Specifies the size of the transfer buffer. The default window size is 4096 bytes.
Displays help at the command prompt.
Specifies the computer name, IP address, or IPv6 address of the FTP server to which to connect. The host name or address, if specified, must be the last parameter on the line.
For more information about ftp commands on Windows Server 2003, see Ftp.
Ftp command-line parameters are case-sensitive.
This command is available only if the Internet Protocol (TCP/IP) protocol is installed as a component in the properties of a network adapter in Network Connections.
Ftp can be used interactively. After it is started, ftp creates a sub-environment in which you can use ftp commands. You can return to the command prompt by typing the quit command. When the ftp sub-environment is running, it is indicated by the ftp > command prompt. For more information see the ftp commands.
Ftp supports the use of IPv6 when the IPv6 protocol is installed. For more information, see Additional references.