/synchronize don't work with -filemask=*.csv

Advertisement

WeBu
Joined:
Posts:
2
Location:
Frankfurt, Germany

/synchronize don't work with -filemask=*.csv

Hi,
I want to make a shortcut-link on the Desktop.

'SessName' is the name of a session. There are both paths stored, HD- and server-path. I want to sync all CSV on HD to a path on the server-path and i try this:
WinSCP.exe SessName /synchronize -filemask=*.csv
In the HD-path are a lot of files, but I want to sync only the spzified files in filemask.

Unfortunately, the filemask-parameter does not provide any restriction, because all file-types are transferred anyway. :-(

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,587
Location:
Prague, Czechia

Before you have asked about starting GUI synchronization from commandline.
Now you ask about "Keep remote directory up to date" in scripting console.
Those are very different features.
For the latter, you can do:
WinSCP.com /command "open SessName" "keepuptodate -filemask=*.csv"
See https://winscp.net/eng/docs/commandline

Reply with quote

Advertisement

You can post new topics in this forum