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

<Source_path>

(Required)

Specify complete path of the source file or folder to be moved.

<Destination_name> (Required)

The target folder path where the file/folder should be moved.

<1(overwrite)/(normal)> (Optional)

<1(overwrite)/0(normal)> (Optional) 1. Use 1 to overwrite files/folders at the destination if they already exist. 2. Use 0 to prevent overwriting. 3. Default behavior is usually 0 (no overwrite).

<extension (ex:.csv)> (Optional)

Filters which file types to move by extension. 1. If specified, only files with the given extension will be moved. Note: Supported extensions for conversions are [‘.txt’, ‘.csv’, ‘.xlsx’, ‘.xls’, ‘.doc’, ‘.docx’, ‘.pdf’, ‘.zip’, ‘. unzip’]

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

Last updated

Was this helpful?