In SIMPLE language how do I exlude certain directories?
What did you try already? So that we can show you what did you wrong?
In SIMPLE language how do I exlude certain directories?
It copies material from the remote site to the local directory but doesn't delete obsolete local files. Anyone know why not?
You are missing-delete
switch:
https://winscp.net/eng/docs/scriptcommand_synchronize
synchronize remote -delete "\\Server1\LocalDirectory" "/ServerDest/RemoteDirectory" it says too many parameter for command 'synchronize'.
It copies material from the remote site to the local directory but doesn't delete obsolete local files. Anyone know why not?
-delete
switch:
I too found the documentation to be less than helpful. Check out this blog, it got be in the right direction.
https://eduboris.blogspot.com/2011/08/winscp-synchronize-scripting-example.html
option batch abort
option confirm off
open ftp://username@remote site
synchronize local "d:\test winscp" "/test winscp" -mirror -criteria="none"
I have read the documentation. It simply is not clear enough.