Copy File/Folder
Last updated
Last updated
The Copy File/Folder action in the Avo Assure is found under the @Generic Element is used to copy a file/folder to a location chosen by the user. It also allows the user to save the file in a different format or compress a folder to save space.
Input: <Source_Path>;<Destination_Path>;<1(overwrite)/0(normal)>(Optional);<extension(ex:.csv)>(Optional).
Note: Supported file formats are [‘.txt’, ‘.csv’, ‘.xlsx’, ‘.xls’, ‘.doc’, ‘.docx’, ‘.pdf’, ‘.zip’, ‘. unzip’]
Output: <Dynamic Variable>(Optional);<Dynamic Variable>(Optional)
Copy the file into the folder:
Copying one file format's data(docx) to another file format(.pdf):
When a user needs to generate reports daily for back up. Instead of manually copying each report, user will use the “copy file/folder” keyword to automate this process. During testing, the Avo assure tool copies each report file to a designated backup location, such as a “Daily Backups.docx” folder on a C:\ drive. This ensures that all reports are securely stored at one place, saving time and reducing the risk of data loss or misplacement.[PJ31] [AB32]
Input: Provide the input values as below:
User can use this action for two scenarios like:
Scenario1: copy the file into the folder
C:\New folder\Daily Backups.docx;C:\Data folder
Scenario 2: copying one file format's data to another file format
C:\New folder\Daily Backups.docx;C:\Data folder;1;.pdf
Expected Result: It should copy the “Daily Backups.pdf” file to the “Data folder”.
Output: The Copy File/Folder action copied (Daily Backups.pdf) the file in specified folder (Data folder) and save its result in the {result} output variable as “True”. This output can be used for display or other purposes.