Re: Unknown switch 'filemask'.
But, It gives me error saying that Unknown switch 'filemask'.
If you are using 4.3.8, use
option exclude ...
or
option include ...
https://winscp.net/eng/docs/scriptcommand_option
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
But, It gives me error saying that Unknown switch 'filemask'.
put -include="* |.svn/ %1%\*"
option batch abort
option confirm off
open ftp://%3%:%4%@%2%
put -filemask=|.svn/ %1%\*
exit
Session started.
Active session [1] xxx
winscp>
@echo off
set winscp="c:\Program Files (x86)\winscp\winscp.exe"
...
%winscp% mysite /console /command "option confirm off" "put -filemask=.svn %localfolder% %remotefolder% " "exit"
%winscp% mysite /console /command "option confirm off" "option exclude .svn" "put %localfolder% %remotefolder% " "exit"