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

工作流活动

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

获取文件夹信息

UiPath.Core.Activities.GetFolderInfoX

Retrieves the properties of a specified folder and saves the information for later use in the project. You can then select one of the folder properties as input for another activity: Files (total number of files in the folder), Folders (total number of subfolders in the folder), Name, Full path, Last modified date (date including time), Size in KB.

配置活动

在活动正文中
  • “文件夹路径” - 单击“浏览”docs image然后浏览到并选择要检索其信息的文件夹。或者,也可以单击字段右侧的“加号”docs image然后从菜单中选择一个可用选项以指明文件夹路径:
    • 项目笔记本、父级 Excel 文件或 Outlook 帐户中的数据。例如,选择一个 Excel 文件,然后选择一个包含该名称的单元格,或指定 Outlook 中所选电子邮件中包含该名称的字段。
    • Use Saved Value - Select a value in the form of a folder path that you previously saved for later use in the project.
    • “文本” - 在文本生成器中输入文件路径。要添加动态路径,可以将文本与使用加号选择的 Excel 公式相结合docs image文本生成器中的菜单。例如,对于每天创建的名称中包含当前日期的文件夹,您可以使用默认 Excel 工作区中的公式将日期添加到文件夹名称中。
    • “运行时询问”- 执行项目时提示输入文本。
    • Open in Advanced Editor - Enter a VB expression.
  • “输出到” - 单击“加号”图标docs image然后从菜单中选择“保存以备后用”,以便稍后在项目中使用输出结果作为另一个活动的输入。或者,也可以选择在高级编辑器中打开并输入 VB 表达式。
在属性面板中
常见
  • DisplayName - The name displayed for the activity in the Designer panel.
输入
其他
  • Private - If selected, the data used in the activity is not logged by StudioX.

输出

  • 配置活动

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新