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


Derek Kennard
2023-12-22T19:29:51Z
Hello,
I have a task where I'm copying files from one location to another. After I copy the file from location A to location B, I want to rename the file. The name of the file I'm copying is a mile long and it will be different every time I copy it, so I think putting the name in the task is not possible. The long name is fine for the copy, but the rename is causing me a headache. All I want to do is, "After copy, rename the file to NAME_yyyymmdd.bak" The NAME_ would be unique for each rename. Any suggestions?
Sponsor
Forum information
Joey S
2024-03-05T20:38:27Z
Assuming you are using the task "Copy Files" you will be able to easily do this.

Your source folder and file mask will remain however you have it now

Under the Copy Settings tab your destination file mask will be

*_yyyymmdd.bak

the "*" asterisk means "whatever the original name was" so the result is originalfilename_yyyymmdd.bak
the only downside to this is it will strip off the original extension

so, if your original file name is 123.txt then your saved name will be 123__yyyymmdd.bak





Scroll to Top