Use the Rename action to rename a file. Optionally, set size or date conditions to control when the rename is applied.
Procedure
- In the Actions palette, double-click or drag the Rename action from the File package.
-
From the Source file field select one of the following
options:
- Specific path: Specify the name and location of the file.
- Regex: Specify the source folder path.
You can use a regular expression (regex) in your source file or folder path to support a pattern-based search. Select the regular expression either as a String or Pattern for each regular expression condition and enter the value.
For example, to copy, delete, rename or print multiple files from your source folder using pattern based search, use regular expressions either as a String and enter the value as My_ for all file name starting with
My_or as a Pattern such as [a-z]{3}(.txt|xlsx) to match files with this pattern.
- In the New file name field, specify a new name for the file.
- Optional:
Select the Size check box to rename a file only when it
meets a size condition.
- Optional:
Select the Date check box to rename a file based on the date
it was created or modified.
- Select Save.