Community forum

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


maciej.dziabas
2020-02-18T21:08:16Z
Hello,
I wish to copy files from one folder to other but I wish to do only with files with proper :
1) Name - in format - CITY_NUMBER0fCITY_DATA
example WS_01_18_2020 - means Washington 01 data

I can not find this option in copy files options.
Can somone can help me ?
thx in advice
Maciej

Sponsor
Forum information
Gary_W
2020-02-18T22:27:16Z
In the copy files task you can check the "is regex" box and put a regular expression in the include file mask area. You'll need to supply a more detailed file name convention but for what you have shown for example:
[A-Z]{2}_\d{2}_\d{2}_\d{4}
which means 2 uppercase letters followed by an underscore, then 2 digits, etc. To get more detailed more info is required.

If you need to verify the number of the city matches the city, you may need to code in powershell where you could build a table to verify against in the code easier than in VC functions.
maciej.dziabas
2020-02-20T15:08:35Z
Hello,
works , thx ,
but can you please help me with another problem.
I wish to copy folder inside is file .txt. Files should be older than 5 minutes .
If there is no .txt files i wish VC to do nothing with files and log error.

thx
Maciej
Gary_W
2020-02-20T15:22:12Z
Please start a new post with this new question.
Scroll to Top