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