> ## Documentation Index
> Fetch the complete documentation index at: https://rpa.bazhuayu.com/helpcenter/llms.txt
> Use this file to discover all available pages before exploring further.

# 打开选择文件夹对话框

## 指令说明

**描述：** 弹出选择文件对话框，让用户选择目标文件并点击确认，返回用户选择的文件路径

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/v_rTeoLOdoPnGE6I/helpcenter/commands/others/images/showopenfoldercommand-01.png?fit=max&auto=format&n=v_rTeoLOdoPnGE6I&q=85&s=22810b1f15a99b4165d58bf35a883c52" alt="打开选择文件夹对话框指令参数面板" width="656" height="364" data-path="helpcenter/commands/others/images/showopenfoldercommand-01.png" />

    | 参数        | 说明                                        |
    | --------- | ----------------------------------------- |
    | **对话框标题** | 请输入对话框的标题，显示在对话框窗口的左上角，非必填，不填则默认为“请选择文件夹” |
    | **初始目录**  | 请选择对话框显示时定位到的默认目录，不填则定位到上次操作的目录           |
  </Tab>

  <Tab title="高级">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/v_rTeoLOdoPnGE6I/helpcenter/commands/others/images/showopenfoldercommand-05.png?fit=max&auto=format&n=v_rTeoLOdoPnGE6I&q=85&s=890c7b028cde634271bec248b1e4f2cb" alt="打开选择文件夹对话框高级参数面板" width="641" height="255" data-path="helpcenter/commands/others/images/showopenfoldercommand-05.png" />

    本指令暂无高级参数。
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/v_rTeoLOdoPnGE6I/helpcenter/commands/others/images/showopenfoldercommand-02.png?fit=max&auto=format&n=v_rTeoLOdoPnGE6I&q=85&s=90ca6fb99bb720ddfbf8d26c4deea528" alt="打开选择文件夹对话框使用示例 - 流程搭建" width="853" height="103" data-path="helpcenter/commands/others/images/showopenfoldercommand-02.png" />

**该流程执行逻辑：**

1. 在【打开选择文件夹对话框】中将标题设置为“请选择文件夹”，并按需要设置默认打开位置。
2. 运行后，流程弹出系统文件夹选择窗口并等待用户选择目录。
3. 用户确认后，所选文件夹路径保存到结果变量，供后续读取、写入、复制或移动文件等指令使用。

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/v_rTeoLOdoPnGE6I/helpcenter/commands/others/images/showopenfoldercommand-03.png?fit=max&auto=format&n=v_rTeoLOdoPnGE6I&q=85&s=77166c40911f2baa3e146a82de733894" alt="打开选择文件夹对话框使用示例 - 效果展示" width="1019" height="534" data-path="helpcenter/commands/others/images/showopenfoldercommand-03.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/v_rTeoLOdoPnGE6I/helpcenter/commands/others/images/showopenfoldercommand-04.png?fit=max&auto=format&n=v_rTeoLOdoPnGE6I&q=85&s=f6f2f190ce1cf5eccb3c5610f30f349b" alt="打开选择文件夹对话框使用示例 - 效果展示" width="830" height="136" data-path="helpcenter/commands/others/images/showopenfoldercommand-04.png" />

<Info>
  使用指令过程中遇到问题？前往 [八爪鱼RPA 开发者社区问答板块](https://rpa.bazhuayu.com/community/questions) 提问，获取官方与社区帮助。
</Info>
