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


Robert Pressley
2025-04-14T14:00:31Z
Is there a way to rename a file using wildcards in the Rename variable - like the below:

{STRING(Replace|{NEWNAME()}|ARTB_SA_#####_#####.csv|Dereg_#####_#####_{DATEFORMAT(yyyy-MM-dd-HHmm)}.csv)} or
{STRING(Replace|{NEWNAME()}|ARTB_SA_*_*.csv|Dereg_*_*_{DATEFORMAT(yyyy-MM-dd-HHmm)}.csv)}

Where # represents a numerical digit which could be any number configuration assigned by source system. I have tried this and it fails.

I've even looked at Task variables, which might work, but the variable holds the .csv extenstion, so I'm not sure how to append date stamp in that situation.

Any feedback appreciated.
Sponsor
Forum information
bweston
2025-04-21T15:03:33Z
Based on my test, setting the "include file mask" to
*.csv
and the "new name mask" to
*_{DATEFORMAT(yyyy-MM-dd-HHmm)}.csv
(not using the post process mask) seems to work.

If you need the include file mask to be more detailed to avoid picking up adjacent files that should not be renamed, it seems as if that would work too (with the same new name mask), although if you need to match digits specifically I think you might have to use a regular expression.
Scroll to Top