> For the complete documentation index, see [llms.txt](https://docs.roboteasy.tech/studio-en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboteasy.tech/studio-en/studio/objetos/arquivos/copiar-arquivo.md).

# Copy File

Object to copy files

## Settings

To use this object, simply select its parameters.

<figure><img src="https://1031980850-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq5KHpWgHEwo0MpHCFtAb%2Fuploads%2F9YCoys1eTDaIVEqd5AbN%2Fimage.png?alt=media&amp;token=d8d7152f-ee44-403e-b4b0-b25ea776546d" alt=""><figcaption><p>General Object Layout</p></figcaption></figure>

**Filling in the object:**

| Field                  | Description                                                                                                                                                                                                                                     |
| ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Title                  | It's the object name and doesn't need to be changed, unless you want to identify it to make it easier to find on the robot, for example: "Copy File - Company Files".                                                                           |
| Object Identifier Name | It's an object unique identifier and doesn't need to be changed, but you can rename it if you want to find it more easily when using it on other objects. Just remember that this name must be unique and without spaces or special characters. |
| File                   | File that will be copied.                                                                                                                                                                                                                       |
| Target Directory       | Location where the new file will be saved.                                                                                                                                                                                                      |
| File Name              | New copied file name                                                                                                                                                                                                                            |
| Overwrite              | Option to overwrite the file if there is already one with the same name in the target directory.                                                                                                                                                |

{% hint style="warning" %}
To avoid incorrect copying, it's essential to include the file extension in the new name, otherwise the file will be copied without its extension, as demonstrated in the example below.
{% endhint %}

## USE CASES

* Use to copy desired file.&#x20;
* If it is necessary to copy files with data extracted in the automation.&#x20;
* Ensure that the data was saved correctly.&#x20;
* You may want to save files in a new directory with a new name for better control.

## Example

To copy a desired file in the same directory with another name.

<figure><img src="https://1031980850-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq5KHpWgHEwo0MpHCFtAb%2Fuploads%2FYU0VigP0anLY2ZvWrdwV%2Fimage.png?alt=media&amp;token=bebdccff-97a3-44cc-aba3-58c76a7619b4" alt=""><figcaption><p>Example Robot Configuration - Copy File</p></figcaption></figure>

**STEP 1:** To set Copy File object.&#x20;

<figure><img src="https://1031980850-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq5KHpWgHEwo0MpHCFtAb%2Fuploads%2FxL2cOaQpWt68Y9pfCxHw%2Fimage.png?alt=media&amp;token=7d8bfdeb-fdf0-418a-94b0-3e5adad657f7" alt=""><figcaption><p>Copy File setting</p></figcaption></figure>

**STEP 2:** Run the robot and check the actions.

<figure><img src="https://1031980850-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq5KHpWgHEwo0MpHCFtAb%2Fuploads%2FBlnAKepbLUseG2f3GLyY%2Fcopy%20file%20robot.gif?alt=media&amp;token=59a3e10f-a737-4203-b0aa-2fa7ec7a65be" alt=""><figcaption><p>Successful Execution Robot Example - Copy File</p></figcaption></figure>

## Download It:

{% file src="/files/qtAyvbgXoue30EbjYzls" %}
