> For the complete documentation index, see [llms.txt](https://docs.avoautomation.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avoautomation.com/avo-assure/actions/generic/file-and-folder-operations/move-file-folder.md).

# 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)`

| 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="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FPKh00Vte1BaFm6E1ZjnJ%2Fimage.png?alt=media&amp;token=14acc7c2-3aac-4f36-a9d3-c3cf92a4976f" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
