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


keolis-lille
2025-03-21T10:23:41Z
Hello,

I have a file named 5911MTA*.dat.
I'd like to rename the file by removing 5911.
The new file would then be called MTA*.dat

I've searched the variables to find out how to do this, but I can't. I'm not sure what to do.
If you have a solution, I'd be delighted to take it.

Best regards,
Sponsor
Forum information
Robert Pressley
2025-03-28T11:52:21Z
I have used the Rename File task to do this, under Rename settings tab, you can use:

{STRING(Replace|{NEWNAME()}|oldfilename.txt|newfilename{DATEFORMAT(yyyyMMddHHmm)}.txt)}

So basically, you add your old or current file name, then on the right hand side of the pipe, give the new file name. In my case above, I am appending a date stamp to the old file name. You can also apply this same principle to other tasks, not just the rename file task. Also, I think there is an example in the documentation.

Hope this helps.
Scroll to Top