Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

gjames

Re: Another FileMask Directory Question

Man, that is crazy simple and works like a champ! Thanks for helping clear it up for me Martin!
martin

Re: Another FileMask Directory Question

It doesn't matter, where you put it. Switches can go anywhere (with some very specific exceptions). After all, you already have one switch in your command. Or maybe you actually do not know that the file mask go to a -filemask switch?

So for example like this:
synchronize remote D:\Data\Exports / -resumesupport=off -filemask=|Archive/

https://winscp.net/eng/docs/scriptcommand_synchronize#filemask
gjames

Another FileMask Directory Question

Hi all -

I've scoured the forums here, FAQ, and even the file mask doc and I still can't seem to wrap my head around where I need to put it.

I need a subfolder Archive to be ignored from D:\Data\Exports directory.
synchronize remote D:\Data\Exports / -resumesupport=off

Do I put the filemask BEFORE remote?
After remote?
After D:\Data\Exports?

What exactly does it need to look like?

Please help.
Thanks.