ftp put

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

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

Note

This command is the same as the ftp send command.

Syntax

put <localfile> [<remotefile>]

Parameters

Parameter Description
<localfile> Specifies the local file to copy.
[<remotefile>] Specifies the name to use on the remote computer. If you don't specify a remotefile, the file is give the localfile name.

Examples

To copy the local file test.txt and name it test1.txt on the remote computer, type:

put test.txt test1.txt

To copy the local file program.exe to the remote computer, type:

put program.exe