订阅

UiPath 活动

UiPath 活动指南

Copy File

UiPath.Core.Activities.CopyFile

描述

将文件从指定位置复制到另一位置。

属性

From

  • From - The path of the file to be copied.

To

  • To - The destination path where to copy the file. If you provide a file path, the file is copied with the name in the provided path. If you provide a folder path, the file is copied with the original name.

Common

  • DisplayName - The display name of the activity.
  • ContinueOnError - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.

Note:

如果“Try Catch 异常处理”中包含该活动且“出错时继续”属性的值为“True”,则系统在执行项目时不会捕获任何错误。

选项

  • “覆盖”- 选中后,要复制的文件将覆盖目标文件夹中的文件。

Misc

  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.

UiPath.Core.Activities.CopyFile

描述

Copies a specified file to another location. Optionally, you can choose to replace any file with the same name that already exists in the destination location.

To learn how to use this activity, see Tutorial: Working with Word Automation.

配置活动

In the Body of the Activity

  • From - Click Browse browse files next to the field and then browse to and select the file to copy. Alternatively, you can click Plus plus button on the right side of the field and then, from the menu, choose one of the available options to indicate the path of the file to copy:
    • 如果该活动在“遍历文件夹中的文件”活动中,则可选择“当前文件”>“完整路径”,以指明当前正在遍历的文件的路径。
    • Data from the Project Notebook, a parent Excel file or Outlook account. For example, select an Excel file and then select a cell that contains a file path, or indicate a field from a selected email in Outlook that contains a file path.
    • Use Saved Value - Select a value in the form of a file path that you previously saved for later use in the project.
    • Text - Enter a file path in the Text Builder.
    • Ask when run - Prompt for a file path when the project is executed.
    • Paste from clipboard - Paste a value in the form of a file path that you previously copied to the clipboard in the project.
    • Open in Advanced Editor - Enter a VB expression.
  • To - Click Browse browse files next to the field and then browse to and select the folder where to copy the file.

    Alternatively, you can indicate the path where to copy the file. If you provide a file path, the file is copied with the name in the provided path. If you provide a folder path, the file is copied with the original name. Click Plus plus button on the right side of the field, and then choose one of the options in the menu:

    • Data from the Project Notebook, a parent Excel file or Outlook account. For example, select an Excel file and then select a cell that contains a file path, or indicate a field from a selected email in Outlook that contains a file path.
    • Use Saved Value - Select a value in the form of a path that you previously saved for later use in the project.
    • Text - Enter a path in the Text Builder. You can combine text with a formula from an Excel file cell, for example to add a date to the file name using formulas in the Project Notebook.
    • Ask when run - Prompt for a path when the project is executed.
    • Paste from clipboard - Paste a value that you previously copied to the clipboard in the project.
    • Open in Advanced Editor - Enter a VB expression.
  • Overwrite - If selected, any file with the same name as the source file that already exists in the destination location is replaced when the automation is executed.

In the Properties Panel

Common

  • ContinueOnError - If selected, specifies that the automation should continue even when the activity throws an error. If not selected, the execution of the project stops when an error is encountered.
  • DisplayName - The name displayed for the activity in the Designer panel.

From

Misc

  • Private - If selected, the data used in the activity is not logged by StudioX.

选项

To

8 个月前更新


Copy File


建议的编辑仅限用于 API 参考页面

You can only suggest edits to Markdown body content, but not to the API spec.