# Move File/Folder

The Move File/Folder action in the Avo Assure is found under the **@Generic Element** is used to move a file/folder to a user-specified location and can also change the file format or compress the folder if desired and save the result in dynamic variable.

### **Syntax**

**Input Value:** `<Source_path>;<Destination_name>;<1(overwrite)/0(normal)>(Optional);<extension (ex:.csv)>(Optional)`&#x20;

| Argument                                     | Description                                                                                                                                                                                                                                                                                          |
| -------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>\<Source\_path></p><p>(Required)</p>      | Specify complete path of the source file or folder to be moved.                                                                                                                                                                                                                                      |
| <p>\<Destination\_name><br>(Required)</p>    | The target folder path where the file/folder should be moved.                                                                                                                                                                                                                                        |
| <p><1(overwrite)/(normal)><br>(Optional)</p> | <p><strong><1(overwrite)/0(normal)> (Optional)</strong><br>1. Use 1 to overwrite files/folders at the destination if they already exist.<br>2. Use 0 to prevent overwriting.<br>3.  Default behavior is usually 0 (no overwrite).</p>                                                                |
| <p>\<extension (ex:.csv)><br>(Optional)</p>  | <p>Filters which file types to move by extension.<br>1. If specified, only files with the given extension will be moved.<br><br><em><strong>Note:</strong></em> <em>Supported extensions for conversions are \[‘.txt’, ‘.csv’, ‘.xlsx’, ‘.xls’, ‘.doc’, ‘.docx’, ‘.pdf’, ‘.zip’, ‘. unzip’]</em></p> |

**Output Value:**

| Argument                                                    | Description                                              |
| ----------------------------------------------------------- | -------------------------------------------------------- |
| \<Dynamic Variable>(Optional);\<Dynamic Variable>(Optional) | This variable stores the status as **true** or **false** |

**Example**

**Move a file or folder to a specified destination**\
\
The **Move File/Folder** action transfers the specified file or folder from the source path to the destination path (e.g., **‪C:\sam\Order No.pdf;C:\Users;1;.csv**). Optional parameters allow for overwriting existing files (1 for overwrite, 0 for normal) and moving only specific file types using the extension filter (e.g., **.csv**). The action status is saved in the **{Status}** variable with the following possible values:

* **True** –  if the file or folder is moved successfully
* **False** – if the move operation fails due to missing source, access issues, or conflicts

<figure><img src="/files/kTJRMsuREyT25Aom8fGh" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.avoautomation.com/avo-assure/actions/generic/file-and-folder-operations/move-file-folder.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
