WinSCP命令行 - 使用-rawtransfersettings开关时,命令'open'的参数太多

问题描述 投票:1回答:1

我得到“命令'打开'的参数太多了。”尝试连接到服务器以获取以下命令时出错,

option confirm off 
open sftp://uname:[email protected]/ -hostkey="ssh-rsa 1024 xx:xx:xx:xx:xx" -timeout=60 -rawsettings SendBuf=0 SshSimple=1 -rawtransfersettings IgnorePermErrors=0 PreserveTimeDirs=0 

我已经检查了很多其他帖子,提到使用Double-Quotes的文字有空间,我认为我的上述脚本是抱怨的。如果我删除最后一组参数后跟-rawtransfersettings我的脚本工作正常。这就是open sftp://uname:[email protected]/ -hostkey="ssh-rsa 1024 xx:xx:xx:xx:xx" -timeout=60 -rawsettings SendBuf=0 SshSimple=1命令完美无缺。

我不知道如何继续这一点,因为我是一个新的命令脚本世界。

command-line sftp winscp
1个回答
0
投票

WinSCP open命令没有-rawtransfersettings开关。

该开关属于文件传输命令,如getput等。

© www.soinside.com 2019 - 2024. All rights reserved.