UiPath Documentation
activities
latest
false

工作流活动

上次更新日期 2026年5月11日

对于文件夹中的每个文件夹

UiPath.Core.Activities.ForEachFolderX

Executes an activity or a series of activities for each child folder in a specified folder. Use this activity when you are working with child folders in a parent folder and you want to repeat one or more activities for each individual child folder. Add the activities to repeat inside For Each Folder in Folder and, when you configure the activities, select the file property to use for each folder from the CurrentFolder entry in the Plus docs image menu.

配置活动

在活动正文中
  • “遍历循环”- 输入引用当前迭代的名称。在配置“遍历 Excel 工作表”中添加的活动时,使用描述文件中工作表的名称可以更轻松地识别和选择迭代中的当前工作表。例如,对于包含报告的文件夹,您可以输入Report。默认值为 CurrentFolder
  • In folder - Click Browse docs image next to the field, and then browse to and select the folder that contains the folders you want to work with. Alternatively, you can click Plus docs image on the right side of the field and then, from the menu, choose one of the available options to indicate the folder path:
    • 项目笔记本、父级 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 文件单元格中的公式结合使用,例如,使用“项目笔记本”中的公式为文件夹名称添加日期。
    • “运行时询问”- 执行项目时提示输入文本。
    • Open in Advanced Editor - Enter a VB expression.
  • “包括子文件夹”- 如果选中,则还将对在指定位置的子文件夹中找到的文件夹执行活动。默认情况下未选中此选项。
  • “跳过访问被拒绝的文件夹” - 如果选中,系统则会自动跳过访问被拒绝的文件夹。系统在默认情况下未选中此选项。
  • “排序依据”- 从下拉菜单中选择迭代文件夹的顺序。您可以按名称、创建日期、上次更新日期和大小对文件夹进行升序或降序排序。
    备注:

    如果由于活动遇到当前用户访问受限的文件夹而发生错误,则在错误对话框中选择“跳过”选项将跳过整个活动,而不是访问受限的文件夹。

在属性面板中
常见
  • DisplayName - The name displayed for the activity in the Designer panel.
输入
  • Filter by name - Filters child folders by name. Click Plus docs image on the right side of the field and then, from the menu, choose one of the available options to indicate the folder path:
    • 项目笔记本、父级 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 文件单元格中的公式结合使用,例如,使用“项目笔记本”中的公式为文件夹名称添加日期。
    • “从剪贴板粘贴” - 将您以前复制的值粘贴到项目中的剪贴板中。
    • “运行时询问”- 执行项目时提示输入文本。
    • Open in Advanced Editor - Enter a VB expression.
  • “文件夹” -在活动主体中查看选项。
  • “包括子文件夹” - 查看活动主体中的选项。
  • “排序依据” - 查看活动正文中的选项。
其他
  • Private - If selected, the data used in the activity is not logged by StudioX.
  • 配置活动

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新