【问题标题】:How to specify the target location for downloading the remote file using mget command?如何使用 mget 命令指定下载远程文件的目标位置?
【发布时间】:2015-03-19 11:25:59
【问题描述】:

我有一个批处理文件可以从远程位置批量复制文件。这工作正常。但是这里我要指定本地系统位置(目标位置)。

示例:

 cd test/test
 mget sample_*.zip
 quit

【问题讨论】:

    标签: windows cmd ftp


    【解决方案1】:

    使用lcd /path 更改当前本地工作目录:

    cd /source_remote_path
    lcd /destination_local_path
    mget sample_*.zip
    quit
    

    请参阅ftp man page

    如果你在本地运行 Windows,当然使用 Windows 风格的路径:

    lcd c:\destination_local_path
    

    请参阅Windows ftp.exe lcd command help

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-03-24
      • 2014-10-19
      • 1970-01-01
      • 2017-04-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多