使用当前文件传输类型将本地文件复制到远程计算机。
Note
此命令相当于 ftp send 命令。
Syntax
put <localfile> [<remotefile>]
Parameters
| Parameter | Description |
|---|---|
<localfile> |
指定要复制的本地文件。 |
[<remotefile>] |
指定要在远程计算机上使用的名称。 如果未指定 remotefile,则该文件将指定 localfile 名称。 |
Examples
要复制本地文件 test.txt 并在远程计算机上将其命名 test1.txt ,请键入:
put test.txt test1.txt
要将本地文件 program.exe 复制到远程计算机,请键入:
put program.exe