synchronize remote -delete d:\backup\test /home/jakob/backup
However, WinSCP does not pick the -delete flag and instead reports
"Too many parameters for command 'synchronize'"
I've tried to insert the '-delete' option at different locations with no success. If I try simply
synchronize remote -delete
"Comparing '-delete' with '/home/jakob'..."
i.e. '-delete' is interpreted as a directory name, not as a switch.
The same operation performed using the GUI works. Also, the script works if the '-delete' switch is not used.
I'm using the SFTP protocol and WinSCP 4.07 on Windows Vista 32-bit.
Is this a bug or am I doing something wrong?