Applies To: Windows Server 2008 R2,Windows Server 2008,Windows Vista,Windows 7

Copies a local file to the remote computer using the current file transfer type. For examples of how this command can be used, see Examples.

Syntax

 Copy Code
put <LocalFile> [<RemoteFile>]

Parameters

Parameter Description

<LocalFile>

Specifies the local file to copy.

[<RemoteFile>]

Specifies the name to use on the remote computer.

Remarks

  • The put command is identical to the send command.

  • If RemoteFile is not specified, the file is given the LocalFile name.

Examples

Copy the local file test.txt and name it test1.txt on the remote computer.

 Copy Code
put test.txt test1.txt

Copy the local file program.exe to the remote computer.

 Copy Code
put program.exe

Additional references