filemask for several file type

Advertisement

Rirbeiro
Joined:
Posts:
5
Location:
Brazil

filemask for several file type

Hello

I'm getting in trouble using filemask with the command line to download several file types in last one hour.

with the command below it get all files and not follow the rule ">1H"

get -filemask=""*.xml;*.pdf>=1H"" /vv447Q/pdfdanfe/* C:\pdfxml_totvs

Thanks in advance

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: filemask for several file type

The time-constraint is a part of a specific mask only, not whole set of masks. So you have to repeat it with each mask:

get -filemask=""*.xml>=1H;*.pdf>=1H"" /vv447Q/pdfdanfe/* C:\pdfxml_totvs

Reply with quote

Rirbeiro
Joined:
Posts:
5
Location:
Brazil

Hi Martin,

I follow your commands but all files were copied and not just the last files modified in the last hour.

Another questions is: Can I use "synchronize local" instead "get"?

Thank you in advance,

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Rirbeiro wrote:

I follow your commands but all files were copied and not just the last files modified in the last hour.
Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Another questions is: Can I use "synchronize local" instead "get"?
Not sure what your question is about. These two commands have a different semantics. So use the one that fits your needs better.

Reply with quote

Guest

Hi Martin,

I have modified my script as below and it is working very well:

"synchronize local -filemask="*>=30N" C:\pdfxml_totvs\ /vv447Q/pdfdanfe"

Thank you so much.

Reply with quote

Advertisement

You can post new topics in this forum