> ## 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/movefoldercommand-01.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=da863fbc18a3ca1ff161c679652eed3e" alt="移动文件夹指令参数面板" width="862" height="691" data-path="helpcenter/commands/os/images/movefoldercommand-01.png" />

    | 参数          | 说明                                                                              |
    | ----------- | ------------------------------------------------------------------------------- |
    | **要移动的文件夹** | 选择要移动的文件夹                                                                       |
    | **目标文件夹**   | 将文件夹移动到此文件夹中                                                                    |
    | **如果文件存在时** | 当文件夹中已经存在同名的文件夹时可选择不执行移动操作、自动添加后缀或覆盖文件夹。注:覆盖文件夹，如果被覆盖文件夹中的文件与覆盖文件夹中的文件不重名，则会被保留 |
    | **生成的变量**   | 将移动后的文件夹路径保存至此变量若不存在则自动创建                                                       |
  </Tab>

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

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/movefoldercommand-04.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=d8aa023eaa1efa8d7bc7749563d47d91" alt="移动文件夹使用示例" width="847" height="688" data-path="helpcenter/commands/os/images/movefoldercommand-04.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/movefoldercommand-02.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=ef4e77f057328ec3d3e6394786375797" alt="移动文件夹使用示例 - 流程搭建" width="1183" height="154" data-path="helpcenter/commands/os/images/movefoldercommand-02.png" />

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

1. 在【移动文件夹】中选择源文件夹 `D:\八爪鱼下载\New教程`，并设置目标目录。
2. 根据目标位置存在同名文件夹时的配置决定覆盖、合并或报错方式。
3. 运行后，文件夹及其内容出现在目标位置，原路径下不再保留该文件夹。

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/movefoldercommand-03.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=a7f93e4c2c9f4c31b59a5056610ea16d" alt="移动文件夹使用示例 - 效果展示" width="1180" height="259" data-path="helpcenter/commands/os/images/movefoldercommand-03.png" />

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