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

# 解压缩文件/文件夹

## 指令说明

**描述：** 将zip文件解压到指定位置

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/decompressfilecommand-04.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=2de2ad4b83562d1d35e77105b0d85abc" alt="解压缩文件/文件夹指令参数面板" width="649" height="443" data-path="helpcenter/commands/os/images/decompressfilecommand-04.png" />

    | 参数          | 说明                                      |
    | ----------- | --------------------------------------- |
    | **待解压文件**   | 需解压的文件路径                                |
    | **解压至**     | 选择将解压后的文件保存到源文件同级目录还是指定的文件夹中            |
    | **创建同名文件夹** | 勾选后，将在所选文件夹中新建与压缩文件同名的文件夹，并将压缩包解压到该文件夹中 |
    | **解压密码**    | 用于解压zip文件的密码，若没有则无需填写                   |
    | **结果保存至**   | 将解压后的文件路径列表保存至此变量，若不存在则自动创建             |
  </Tab>

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

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/decompressfilecommand-03.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=b245fd194dfa2f13ba4913a308978482" alt="解压缩文件/文件夹使用示例" width="654" height="471" data-path="helpcenter/commands/os/images/decompressfilecommand-03.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/decompressfilecommand-01.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=a55d2b775ddd66089b2b7c801d0aef8a" alt="解压缩文件/文件夹使用示例" width="849" height="177" data-path="helpcenter/commands/os/images/decompressfilecommand-01.png" />

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

1. 在【解压缩文件/文件夹】中选择待解压的压缩包，将解压位置设为“源文件位置”。
2. 把结果保存到变量“解压内容所在文件夹”，然后执行指令。
3. 检查源文件目录，确认内容已解压；后续指令可使用该结果变量定位解压后的文件夹。

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/decompressfilecommand-02.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=7caec3a9a079a1ef2ee4374e8f7106bb" alt="解压缩文件/文件夹效果展示" width="947" height="206" data-path="helpcenter/commands/os/images/decompressfilecommand-02.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/decompressfilecommand-05.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=5e1bb364fe2b23f7c812842a15d6fe3d" alt="解压缩文件/文件夹效果展示" width="355" height="151" data-path="helpcenter/commands/os/images/decompressfilecommand-05.png" />

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