Move File/Folder
Last updated
Last updated
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.
Input: <Source_path>;<Destination_name>;< 1(overwrite)/ 0(normal)>(Optional); <extension (ex:.csv)>(Optional).
Note: Supported extensions for conversions are [‘.txt’, ‘.csv’, ‘.xlsx’, ‘.xls’, ‘.doc’, ‘.docx’, ‘.pdf’, ‘.zip’, ‘. unzip’]
Output: <Dynamic Variable>(Optional);<Dynamic Variable>(Optional)
For changing the file format:
A user generates daily transaction reports and needs to archive them at the end of each week. Instead of moving these files manually, they use the “move file/folder” keyword to automatically transfer the weekly reports from the “Current Reports” folder to an “Archive” folder. By setting the destination path, it keeps files organized and reduce the chance of any reports getting misplaced. This makes records easy to find for audits or future use.
Input: Provide the input values as below:
C:\Data Folder\Current_Reports.doc;C:\Archive
For changing the file path from JPEG to PNG use below input:
C:\Data Folder\Current_Reports.doc;C:\Archive.pdf
Expected Result: It should move the file from Current_Reports.doc to Archive file and change the file format.
Output: The Move File/Folder action moved the file (Current_Reports.doc) in specified folder (Archive) and save its result in the {result} output variable as “True”. This output can be used for display or other purposes.