synchronize in script mode always says 'too many paramters'
If I try to use 'synchronize' in a script and run it with the command:
"c:\program files\winscp\winscp.com" /privatekey="c:\my\key\file" /script="c:\myscript.winscp"
It always tells me 'too many parameters for command synchronize'.
If I run the same series of commands in the winscp shell it works fine.
I have tried specifying the directories and not specifying the directories. I have made sure my paths contain no spaces or strange characters.
My script looks like this:
-----
echo on
batch on
confirm off
open scp://user@my.host:55000
cd "/site/data/mydata"
synchronize local
close
exit
-----
Why does the synchronize command work fine in the shell but not in the script?
"c:\program files\winscp\winscp.com" /privatekey="c:\my\key\file" /script="c:\myscript.winscp"
It always tells me 'too many parameters for command synchronize'.
If I run the same series of commands in the winscp shell it works fine.
I have tried specifying the directories and not specifying the directories. I have made sure my paths contain no spaces or strange characters.
My script looks like this:
-----
echo on
batch on
confirm off
open scp://user@my.host:55000
cd "/site/data/mydata"
synchronize local
close
exit
-----
Why does the synchronize command work fine in the shell but not in the script?