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

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

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

## 使用示例

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

<img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/copyfilecommand-01.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=b456bf54f661f36ffe3ffc97ae872cbe" alt="复制文件使用示例" width="957" height="112" data-path="helpcenter/commands/os/images/copyfilecommand-01.png" />

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

1. 在【复制文件】中选择源文件，并设置目标文件夹或目标文件路径。
2. 根据“目标文件已存在时”的配置决定覆盖、跳过或报错处理方式。
3. 运行后，源文件保持不变，目标位置生成一份相同内容的文件副本。

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/y7Z2TvwRJJef-uiI/helpcenter/commands/os/images/copyfilecommand-02.png?fit=max&auto=format&n=y7Z2TvwRJJef-uiI&q=85&s=619831a06c64eaf67294e32ad734a2c2" alt="复制文件效果展示" width="956" height="168" data-path="helpcenter/commands/os/images/copyfilecommand-02.png" />

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