scripting option exclude

Advertisement

guest
Guest

scripting option exclude

Hi,

I have reviewed the documentation and topics in the forum but continue to have problems with my exclude options.

These all fail with "Too many parameters for command 'option'."

option exclude *\; *.zip>600000K
or
option exclude *.zip>600000K; *.zip.ent
or
option exclude *.zip>600000K; *\; *.zip.ent

However this does work -> option exclude *.zip>600000K
but I still need multiples to work.

Thanks for your time.

BTW: It's functionality I am happy to see included in the new version.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

Re: scripting option exclude

Enclose the mask into double quotes:
option exclude "*.zip>600000K; *\; *.zip.ent"
See documentation.
_________________
Martin Prikryl

Reply with quote

guest
Guest

I noticed on June 19/06 in a thred that you mentioned WinSCP does not support quoted masks. So after I tried it once and failed I did not continue to debug.

It's working now. Maybe it's because of the new version.

Thanks for your assistance.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

guest wrote:

I noticed on June 19/06 in a thred that you mentioned WinSCP does not support quoted masks. So after I tried it once and failed I did not continue to debug.
It does not. But it is the script command parameter as a whole that needs to be quoted, because it contains spaces.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum