UiPath Documentation
activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

工作流活动

上次更新日期 2026年4月27日

创建文件

在指定位置创建文件。如果该位置已存在文件,则替换该文件。如果要创建要写入的文件,建议使用“附加行”方法。

定义

命名空间: UiPath.Activities.System.API

程序集: UiPath.System.Activities.Api(在 UiPath.System.Activities.Api.dll 中)

CreateFile(String, String)

ILocalResource CreateFile(
    string name,
    string path
)
ILocalResource CreateFile(
    string name,
    string path
)

name String : 要创建的文件的名称。

path String : 要创建的文件的完整路径。

返回值

ILocalResource

活动创建的文件。

  • 定义
  • CreateFile(String, String)
  • 返回值

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新