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

Arjun

many many thanks :lol: this is sorted n working
martin

Re: need help on excluding a specific file name during sync

First, I have edited my response, it should be -filemask=.

Even if you insist on using deprecated "option exclude", you need to combine all masks into one. What you are doing that that every call to option exclude overwrite the previous value. They do not add-up. See https://winscp.net/eng/docs/scriptcommand_option
E.g.
option exclude ".removed_logs; *_TOB_*; *_S17-*"
Arjun

Re: need help on excluding a specific file name during sync

sorry, couldnt catch, kindly could you pls give an example

my script looks like this at the excluding area,
i tried both the "?" and "*" to check but both failing to [b]exclude [/b]

option transfer binary
option exclude ".removed_logs"
option exclude "?_TOB_?"
option exclude "?_S17-?"
option exclude "?_TS_?"
option exclude "*_LTR_*"
option exclude "*_TOB_*"
synchronize local E:\Logs\ /Incoming

an example would help i guess ..

[quote="prikryl"]The current syntax in the latest version of WinSCP is:
synchronize -filmask="|*_LTR_*; *_TOB_*" ...
Though the "option exclude" should still work, althought it is deprecated.[/quote]
martin

Re: need help on excluding a specific file name during sync

The current syntax in the latest version of WinSCP is:
synchronize -filemask="|*_LTR_*; *_TOB_*" ...
Though the "option exclude" should still work, althought it is deprecated.
Arjun

need help on excluding a specific file name during sync

hi,

i need to exclude *_LTR_* and *_TOB_* from my sync list and not able to do this,

tried these but none helped (both style)

option exclude "[A-Z]_LTR_[A-Z].gz"
option exclude "?_TOB_?"


pls help