Task File - Rename file

Top  Previous  Next

The Rename file Task renames a file. The destination file name can be altered with a wild card or a Variable.

 

File filter sub tab

 

In the file filter sub tab you set the properties for finding files that you want to rename. The file filter is the VisualCron standard file filter.

 

clifffp00ff15

 

Rename settings sub tab

 

In the rename settings you control the final file name.

 

New name mask

You can use a wild card to replace the original name. For example *.pdf keeps the original name but changes the extension to "pdf".

 

Post process mask with Variable

Sometimes you might want to change the name with the help of a Variable. Use default * in the New name mask and then check this box to add support for Variable renaming.

 

The default value shows how to use this property. {STRING(Replace|{NEWNAME()}|oldValue|newValue)}. {NEWNAME()} is the new name after the New name mask has been processed. You need this Variable pointer to find the "current" name you want to rename.