Using the Rename action for file - Use the Rename action to rename a file. Optionally, set size or date conditions to control when the rename is applied.

Automation 360

Use the Rename action to rename a file. Optionally, set size or date conditions to control when the rename is applied.

Procedure

  1. In the Actions palette, double-click or drag the Rename action from the File package.
  2. 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.

  3. In the New file name field, specify a new name for the file.
  4. Optional: Select the Size check box to rename a file only when it meets a size condition.
    1. Select one of the following options from the list:
      • Atleast: Renames a file only if the file size exceeds the specified value.
      • Atmost: Renames a file only if the file size is below the specified value.
      • Exact: Renames a file only if the file size matches the specified value.
    2. Specify a value in the Size field.
  5. Optional: Select the Date check box to rename a file based on the date it was created or modified.
    1. Select one of the following options from the list:
      • Created: Renames a file based on the file's creation date.
      • Modified: Renames a file based on the date the file was last modified.
    2. Select the Is within last option and specify a value in the field.
      Copies the file if it was created or modified within the number of days you specify. For example, entering 7 copies files created or modified in the last 7 days.
    3. Select the Is between option to specify a period.
      Enter a Start date and an End date. For example, entering 2019-01-01 as the start date and 2019-01-31 as the end date copies files created or modified within that period.
      Note: The Start date and End date are included in the period.
    4. Select the Is before option and specify a value in the field.
      Copies the file if it was created or modified on or before the date you specify.
    5. Select the On a date option and specify a date in the field.
      Copies the file if it was created or modified on the exact date you specify.
  6. Select Save.