Topic "filemask for several file type"

Author Message
Rirbeiro
[View user's profile]

Joined: 2016-08-31
Posts: 5
Location: Brazil
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
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26138
Location: Prague, Czechia
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
Rirbeiro
[View user's profile]

Joined: 2016-08-31
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,
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26138
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.

Quote:
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.
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.
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