Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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
martin

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

There's no command-line -filemask switch.
There's only /rawtransfersettings:
/rawtransfersettings IncludeFileMask="*.csv"

Though that by default changes the file mask permanently. You can prevent that using:
/rawconfig Interface\CopyParam\Access=read

(see https://winscp.net/eng/docs/config#readonly_sections)
WeBu

/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. :-(