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

martin

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.
Anna

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
plubarj

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

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

Re: filemask for several file type; prbl. within command line

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"

Note the double double-quotes.
See https://winscp.net/eng/docs/commandline#syntax
plubarj

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