订阅

UiPath 活动

UiPath 活动指南

Create File

UiPath.Core.Activities.CreateFile

描述

Creates an empty file in the specified location. If a file already exists at that location, it is replaced. If you want to create a file in which you want to write, it is recommended to use the Append Line activity.

属性

File

  • “路径”- 要创建的文件的完整路径。
  • Name - The name of the file to be created.

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.CreateFile

描述

在指定位置创建文件。

To learn how to use this activity, see Tutorial: Working with Files and Folders.

配置活动

In the Body of the Activity

  • File location - Click Browse browse files next to the field, and then browse to and select the folder where to create the file. Alternatively, you can click Plus plus button on the right side of the field and select one of the available options to indicate the folder path:
    • Data from the Project Notebook, a parent Excel file or Outlook account. For example, you can select a cell that contains a folder path.
    • Use Saved Value - Select a value in the form of a folder path that you previously saved for later use in the project.
    • Text - Enter a folder path in the Text Builder.
    • Ask when run - Prompt for a folder path when the project is executed.
    • Open in Advanced Editor - Enter a VB expression.
  • File name - Click Plus plus button on the right side of the field, and then use one of the options in the menu to indicate the name of the file to create:
    • Data from the Project Notebook, a parent Excel file or Outlook account. For example, you can select a cell that contains the file name.
    • Use Saved Value - Select a table value that you previously saved for later use in the project.
    • Text - Enter the name in the Text Builder.
    • Ask when run - Prompt for a name when the project is executed.
    • Open in Advanced Editor - Enter a VB expression.

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.

File

Misc

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

12 个月前更新


Create File


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

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