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"
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