Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Frank2808
2014-07-08T15:05:46Z
I'm using the FTP task to download files. The files have the year in the file name and I only want to download files with the year 2003 or greater.

Here's an example:

BankRegulatoryHistory_1991_LTMYTDNEW_20140705D_1.zip
BankRegulatoryHistory_2012_LTMYTDNEW_20140705D_1.zip
BankRegulatoryHistory_2013_LTMYTDNEW_20140705D_1.zip
BankRegulatoryHistory_2014_LTMYTDNEW_20140705D_1.zip

So I only want the files with 2012, 2013, 2014 in the name. I'm thinking maybe REGEX? Any help would be appreciated. Thanks!
Sponsor
Forum information
ErikC
2014-07-08T18:31:45Z
Hi Frank,

What you can do is adding multiple downloads in one ftp task.
All have different download masks.
So have three seperate downloads with file mask:
  • *History_2012_*
  • *History_2013_*
  • *History_2014_*

This wil download only the files from 2012,2013 and 2014

I don't believe there is a regex for the ftp download task, or I'm mistaken. (I'm not at a VC client at the moment)

Regards,
Erik
Uses Visualcron since 2006.
Scroll to Top