ftp recv

Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

Copies a remote file to the local computer using the current file transfer type.

Note

This command is the same as the ftp get command.

Syntax

recv <remotefile> [<localfile>]

Parameters

Parameter Description
<remotefile> Specifies the remote file to copy.
[<localfile>] Specifies the name of the file to use on the local computer. If localfile isn't specified, the file is given the name of the remotefile.

Examples

To copy test.txt to the local computer using the current file transfer, type:

recv test.txt

To copy test.txt to the local computer as test1.txt using the current file transfer, type:

recv test.txt test1.txt