Read and Review Automation Anywhere Documentation

Automation 360

Close Contents

Contents

Open Contents

Using Copy action for file

  • Updated: 12/01/2020
    • Automation 360 v.x
    • Build
    • RPA Workspace

Using Copy action for file

Use the Copy action to copy an existing file. This action enables you to copy a file based on its size and the date it was created or modified.

Procedure

To copy an existing file, follow these steps:

  1. In the Actions palette, double-click or drag the Copy action from the File package.
  2. From the Source file field select one of the following options:
    • Specific: Specify the name and location of the file.
    • For 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, if want 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|xlxs) to retrieve files that matches this pattern.

  3. In the Destination file/folder field, specify the name of the file and location.
  4. Select the Overwrite existing files check box to overwrite an existing file with the same name at the specified location.
    If this option is not selected, the system appends the name of the copied file with a numeric value. For example, if you have copied a file named June_Quarter_report.pdf and a file with the same name exists in the location where you want to save the copied file, the system saves the copied file as June_Quarter_report_(1).pdf. The numeric value is incremented each time you copy a file with the same name when the overwrite check box is not selected.
  5. Select the Size check box to copy a file based on its size.
    1. Select any of the following options from the list:
      • Atleast: Copies a file only if the file size is more than the size you have specified.
      • Atmost: Copies a file only if the file size is less than the size you have specified.
      • Exact: Copies a file only if the file size is the same as the size you have specified.
    2. Specify a value in the Size field.
  6. Select the Date check box to copy a file based on the date it was created or modified.
    1. Select any of the following options from the list:
      • Created: Enables you to copy a file based on the date it was created.
      • Modified: Enables you to copy a file based on the date it was modified.
    2. Select the Is within last option and specify a value in the field.
      This option enables you to perform the operation on the file if it was created or modified within the number of days you have specified. For example, if you specify 7 in the field, the system performs the operation on the file if it was created or modified in the last 7 days.
    3. Select the Is between option to specify a period.
      This option enables you to specify a Start date and an End date for the period. For example, if you specify 01/01/19 as the start date and 01/31/19 as the end date of the period, the system performs the operation on the file if it was created or modified between this 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.
      This option enables you to perform the operation on the file if it was created or modified on or before the date you have specified.
  7. Click Save.
Send Feedback