martin wrote:
Pepper wrote:
synchronize remote -filemask=filename
- I can't use.
Why?
I use WinSCP in script mode.
I run it from batch:
WinSCP.exe /console /script="C:\wscpcmd.txt" /parameter %prm%
wscpcmd.txt:[m:782fe1861a]
open ftp://... -passive=on -timeout=10 -rawsettings Utf=2
option batch on
option confirm off
option reconnecttime 20
synchronize remote "C:\to_upload\%1%" /Public
close
exit
[/m:782fe1861a]
where is
%prm%
can be single file or folder, and I don't know exists this file/folder at FTP or not.
If I upload folder to FTP - I don't know which files in this folder already exists, because I can't use
-filemask
.
(In this example sсript will be problem if
%prm%
contain single file name (not folder).)