FTP “Too many parameters for command 'synchronize'” with WinSCP

自古美人都是妖i 提交于 2019-12-29 08:15:18

问题


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'


回答1:


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

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

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


Other questions with the same error message, but different problem:

  • WinSCP command line - Too many parameters for command 'open' when using -rawtransfersettings switch
  • WinSCP "Too many parameters for command 'open'." error
  • Getting "Too many parameters for command", when calling WinSCP command-line from VBA


来源:https://stackoverflow.com/questions/57964436/ftp-too-many-parameters-for-command-synchronize-with-winscp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!