Command-line examples are in command-line syntax documentation:
https://winscp.net/eng/docs/commandline#syntax
https://winscp.net/eng/docs/commandline#syntax
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
synchronize both d:\www /home/martin/public_html
WinSCP.com /command "synchronize both d:\www /home/martin/public_html" exit
"synchronize local . / -filemask=|mydir/"
/mydir
/mydir/myfile.txt
...
cd
into a directory and call the following to synchronize everything except mydir
completely:
WinSCP.com ftp://user:password@ftp.domain.com /command "synchronize local . /" -filemask "|mydir/" exit
mydir
, even if I use |/mydir/
.
Synchronizing...
Local '.' <= Remote '/'
mydir | 0 B | 0,0 KB/s | binary | 0%
other files...