FTP“命令‘同步’的参数太多"使用 WinSCP [英] FTP "Too many parameters for command 'synchronize'" with WinSCP

查看:13
本文介绍了FTP“命令‘同步’的参数太多"使用 WinSCP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试通过 WinSCP 脚本自动化 FTP:

Trying to automate FTP through the WinSCP script:

option block abort
option confirm off
open ftp://[link to cloud server here]
synchronize local (path to local files) /Qty Update
exit

会话开始并连接,但随后我得到了

Session starts and connects but then I get

命令同步"的参数过多

推荐答案

如果路径中包含空格,则必须 用双引号括起来:

If the paths contain spaces, you have to surround them by double-quotes:

synchronize local "C:path to local files" "/Qty Update"

<小时>

旁注:它是 选项批处理中止,而不是block.

具有相同错误信息但问题不同的其他问题:

这篇关于FTP“命令‘同步’的参数太多"使用 WinSCP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆