Rename Folder
Last updated
Last updated
The Rename Folder action in the Avo Assure is found under the @Generic Element is used to rename the old folder name to the new folder name and store the result in an output variable.
Input: <folder_path>; <folder_name_old>; <folder_name_new>
Output: <Dynamic Variable>(Optional);<Dynamic Variable>(Optional)
A bank is archiving monthly reports. Initially, each folder is named with a placeholder like “Data Folder.” At the end of the year, the folder “Data Folder” is renamed to include the current year, such as “New Data.” Using the Rename Folder action in Avo Assure, users can automate this update, so the folder name accurately reflects the correct year, making it easier to find files in the future.
Input: Provide the input values as below:
C:\;Data Folder;New Data.[PJ13] [AB14]
Expected Result: It should rename the folder name from Data folder to New Data.
Output: The Rename Folder action rename the old folder (“Data Folder”) to new folder (“New Data”) exists in the C:\ drive and save its result in the {result} output variable as “True”. This output can be used for display or other purposes.