Copy File
The FS Automation package facilitates users to organize files and directories. This grouping is used dynamically while a workflow is executed.
This activity helps the user to copy file from the respective location to another location specified with it.
Technical Reference:
|
INPUT |
File Path: Specify the file path from the system within the double quotes to copy the file. You can also select the file manually by selecting the three dots nearer to the path. |
New File Path: Specify the file path to where the selected file needs to be pasted. You can also select the file manually by selecting the three dots nearer to the path. |
||
MISC |
Display Name: Displays the name of the activity. You can also customize the activity name to help troubleshoot issues faster. This name will be used for logging purposes. |
|
SkipOnError: It specifies whether to continue executing the workflow even if it throws an error. This supports only Boolean value “True or False”. By default, it is set to “False.” True: Continues the workflow to the next step False: Stops the workflow and throws an error. |
||
Version: It specifies the version of the web automation feature in use |
||
OUTPUT |
Result: Declare and assign variable to return “SkipOnError” result. Use a message box or write log to view the result. |
* Mandatory fields to execute the workflow.
The following activity illustrates on how we are going to copy the file from one location another location.
Example:
1. Open a project and create a workflow.
2. Drag and drop the Copy File activity from FS Automation.
3. Double click on the activity.
4. Enter the file path where the file needs to be copied in the “Copy file from” within the double quotes in the box or select it manually.
5. Enter the file path where the file needs to be pasted in the “Copy file to” within the double quotes in the box or select it manually.
6. To return the success status, Specify “True” in Skip on Error tab.
7. Declare and assign a new variable in Result tab.
8. Drag and drop Write log activity and connect below the Copy file activity.
9. Enter the input string as SAM.ToString in the box.
10. Enter the log level as “Info”.
11. Now, execute the workflow.
The bot copies the file from specified location and pastes in another specified location.