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

    | 参数         | 说明                                          |
    | ---------- | ------------------------------------------- |
    | **文件路径**   | 输入要复制的文件路径                                  |
    | **目标文件夹**  | 输入目标文件夹路径                                   |
    | **当文件存在时** | 指定当目标文件夹下已存在同名文件时要执行的操作，覆盖原有文件、不做任何处理、自动重命名 |
  </Tab>

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

## 使用示例

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

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

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

1. 在【移动文件】中选择源文件，并设置目标文件夹或目标文件路径。
2. 根据“目标文件已存在时”的配置决定覆盖、跳过或报错处理方式。
3. 运行后，文件出现在目标位置，原路径下不再保留该文件。

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/movefilecommand-01.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=41e85cc09305968bd48f7a933aa6010c" alt="移动文件效果展示" width="959" height="168" data-path="helpcenter/commands/os/images/movefilecommand-01.png" />

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