> ## 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/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/renamefoldercommand-03.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=90ba8c52e47d4f6dd1728643095d8c82" alt="文件夹重命名指令参数面板" width="858" height="697" data-path="helpcenter/commands/os/images/renamefoldercommand-03.png" />

    | 参数           | 说明                                                              |
    | ------------ | --------------------------------------------------------------- |
    | **要重命名的文件夹** | 请选择要重命名的文件夹                                                     |
    | **文件夹新名称**   | 文件夹的新名称，若重命名时已有同名，则执行失败                                         |
    | **当文件夹存在时**  | 当文件夹已经在时，可选择不要重命名或覆盖文件夹，注:覆盖文件夹，如果被覆盖文件夹中的文件与覆盖文件夹中的文件不重名，则会被保留 |
    | **结果保存至**    | 将修改后的文件夹的完整路径保存至此变量，若不存在则自动创建                                   |
  </Tab>

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

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/renamefoldercommand-01.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=547a465bc500f55f4817ee794563a434" alt="文件夹重命名使用示例" width="1131" height="210" data-path="helpcenter/commands/os/images/renamefoldercommand-01.png" />

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

使用【文件夹重命名】命令获取D:\教程.xlsx 文件夹重命名为“New教程”，并将结果保存到变量：新的文件夹路径

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/renamefoldercommand-02.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=6776ee2b8468f70a786d51e43c2d2134" alt="文件夹重命名效果展示" width="1176" height="250" data-path="helpcenter/commands/os/images/renamefoldercommand-02.png" />

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