Using Copy Desktop file action for file

Use the Copy Desktop file action to copy an existing file from Desktop to another location. 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, from the File package, double-click or drag the Copy Desktop file action.
  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 the Overwrite existing files 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 Copy of June_Quarter_report.pdf for the first time. When you copy the same file in the same folder for the second time, it saves the copied file as Copy (2) of June_Quarter_report.pdf. The numeric value is incremented each time you copy a file with the same name when the overwrite check box is not selected.
    • If you want to copy a file that is already available in the destination folder where the source and the destination folders are different and the Overwrite existing files check box is not selected, then the system shows the following error message: Unable to copy file(s) <path\filename> as the specified file(s) exists.
  5. Select the Copy multiple files at the same time to increase the copy speed check box to copy large number of files simultaneously thus improving the speed of copy operation.
    Note: If you already have existing automations to copy large files that is taking more time and have dependent automations that are tuned per the existing copy speed, then when you use the Copy multiple files at the same time to increase the copy speedoption, ensure that you make specific adjustments to your bot code per the increased copy speed before you use the option.
  6. 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.
  7. Select the Date check box to copy a file based on the date it was created or modified.
    1. Select one of the 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.
    5. Select the On a date option and specify a date in the field.
      This option enables you to perform the operation on a file if it was created or modified on the date that you specified.
  8. Click Save.