【问题标题】:WinSCP select most recent fileWinSCP 选择最近的文件
【发布时间】:2021-06-16 12:54:52
【问题描述】:

正在寻找相当于选择最新/最新文件的 WinSCP 命令行?
http://winscp.net/eng/docs/script_download_most_recent_file

我正在寻找一种方法来更新下面的 WinSCP 命令行以下载最新文件:

winscp.com /command "option batch abort" "option confirm off" "open sftp://martin@example.com/ -hostkey=""ssh-rsa 2048 xx:xx:xx...""" "exit"

【问题讨论】:

    标签: command-line sftp winscp


    【解决方案1】:

    使用get command-latest switch,如Downloading the most recent file 文章所示:

    get -latest /home/user/* c:\downloaded\
    

    如果你想在命令行上使用它,语法如下:

    winscp.com /command "open sftp://user:password@example.com/ -hostkey=""ssh-rsa 2048 xx:xx:xx...""" "get -latest /home/user/* c:\downloaded\" "exit"
    

    为你使用WinSCP GUI to generate command-line template

    【讨论】:

      猜你喜欢
      • 2016-01-18
      • 1970-01-01
      • 2020-03-09
      • 2014-09-17
      • 2017-03-19
      • 2018-04-02
      • 2016-02-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多