Topic "scripting option exclude"

Author Message
guest

Guest


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.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Enclose the mask into double quotes:
option exclude "*.zip>600000K; *\; *.zip.ent"
See documentation.
_________________
Martin Prikryl
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.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
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
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License