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

查看:341
本文介绍了FTP“命令'synchronize'的参数太多"使用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

同步"命令的参数太多

Too many parameters for command 'synchronize'

推荐答案

如果路径中包含空格,则必须

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

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


旁注:它是 option batch abort ,而不是block


Side note: It's option batch abort, not block.

其他错误消息相同但问题不同的问题:

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

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