WinSCP 选择最近的文件

编程入门 行业动态 更新时间:2024-10-26 12:27:53
本文介绍了WinSCP 选择最近的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

Looking for the WinSCP command line equivalent of selecting the most recent/latest file? winscp/eng/docs/script_download_most_recent_file

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

I'm looking for a way to update my WinSCP command-line below to download the latest file:

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

推荐答案

使用 - get 命令的最新开关a>,如下载最新文件文章所示:

Use the -latest switch of the get command, as the Downloading the most recent file article shows:

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

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

If you want to use it on command-line, the syntax is like:

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

使用 WinSCP GUI 为您生成命令行模板.

更多推荐

WinSCP 选择最近的文件

本文发布于:2023-10-07 12:41:59,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1469412.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   WinSCP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!