filemask for several file type; prbl. within command line

Advertisement

plubarj
Joined:
Posts:
2
Location:
WinSCP 4.3.9, Build 1817

filemask for several file type; prbl. within command line

Hello
I'm getting in trouble using filemask with the command line to download several file types.
e.g. with the command below returns an error: Missing parameter for cammand 'get'
winscp /command "option batch abort" "option confirm off" "open ftp:/myftp.com" "get -resume -preservetime -filemask="*.m4a; *.wav; *.dct; *.txt" /data/dictate/* c:\temp\" "exit"

But if I put just a single filetype like below, it works
winscp /command "option batch abort" "option confirm off" "open ftp:/myftp.com" "get -resume -preservetime -filemask=" *.txt" /data/dictate/* c:\temp\" "exit"

It's like the semi-column separator was not accepted. I tried many other options witout success. Would someone be able to help me?
Thanks in advance


***WinSCP 5.1.0, build 2625

Reply with quote

Advertisement

plubarj
Joined:
Posts:
2
Location:
WinSCP 4.3.9, Build 1817

Yeah! Cool! It works so.
Thanks a lot prikryl.

Funny: in my code now, I've got quintuple quotes :mrgreen:
... preservetime -filemask="""""& $fileType &""""" ...

Reply with quote

Anna
Guest

synchronize remote -filemask="*.csv" in 4.3.9

can I please confirm if this syntax is supported in 4.3.9

synchronize remote -filemask="*.csv"


WinSCP.exe /command "option batch abort" "open Test" "cd Test01" "lcd \\out" "synchronize remote -filemask=""*.csv""" "exit" /log=C:\temp\log\test.log

thank you

Reply with quote

martin
Site Admin
martin avatar

Re: synchronize remote -filemask="*.csv" in 4.3.9

Anna wrote:

can I please confirm if this syntax is supported in 4.3.9
The -filemask switch was introduced in 5.0.6 only. For older versions use "option include". Or even better, upgrade.

Reply with quote

Advertisement

You can post new topics in this forum