Copy File
This article provides information on the following topics:
Note: The Actions Quick Reference provides a complete list of actions that you can print for easy reference.
What is the Copy File Action?
The Copy File Action copies one or more files to a new location. Once a file is copied to a new location, the name of the file remains the same. To rename the file after copying, read the Rename Filearticle.
Creating a Copy File Action
Select Files & Folders Actions to expand the Action list. Select theCopy File Action from the Actions list to display the Action Builder.
Both the Timing and Error settings for this action may be configured to fine tune the how the Action will run.
Note: For more information about Timing and Error settings, read the Action Builder article.
Enter the Name of the file to copy. Be sure to enter the full file path.
Note: When entering the file path , an asterisk (wildcard character) can be used to select multiple files. The following example selects all subfolders in the directory: "C:\MyFolder\*.txt".
Enter a Destination folder name to copy the file to. Be sure to enter the full folder path, but do not include the file name. For example, rather than entering "C:\NewDestinationName\FileName.txt", you would enter the folder name only: "C:\NewDestinationName\".
Check the Include subfolders option if you would also like to copy files in subfolders. Check the Overwrite option to replace existing files with the same file name.
The Options section allows you to further refine which files are considered. Enabling any of the these options will only include files with specific attributes. You have the ability to filter files by:
- Create date
- Equal to
- Newer than
- Newer than or equal to
- Older than
- Older than or equal to
- Last modified date
- Equal to
- Newer than
- Newer than or equal to
- Older than
- Older than or equal to
- File size
- Equal to
- Larger than
- Larger than or equal to
- Smaller than
- Smaller than or equal to
Additionally, you have the ability to filter by the Read-Only, Archive, Hidden, System, and Compressed attributes of the file.
Optionally add Notes to the Action to document any special instructions or functionality. When the Run Switchis set to Run, the action will be executed after clicking OK.
Note: The run switch is set to Run by default. To create or modify this action without executing it, click the slider to change the option to Don't Run. For more information, see Action Builder.
Click the OK button to save the Action.