Rename File
Last updated
Last updated
The Rename File action in the Avo Assure is found under the @Generic Element is used to rename the old file name to the new file name and store the result in an output variable for further use.
Input: <file_path>;<file_name.extn>;<file_name2.extn>
Note: Supported file formats are .txt. .xlsx, .xls, .pdf, .gif, .doc, .xml
Output:<Dynamic Variable>(Optional);<Dynamic Variable>(Optional)
When a user downloads their monthly bank statement, it often saves with a generic name like “statement.pdf.” To keep files organized, the user can use the “Rename file” keyword to automatically change it to something more specific, like “Statement_2024.pdf.” This way, each statement has a unique, easy-to-find name.
Input: Provide the input values as below:
C:\Data Folder;Statement.pdf;BankStatement_2024.pdf
Expected Result: It should rename the existing file.
Output: The result of the Rename Folder action renames the old file (“Statement.pdf”) to new file (“BankStatment_2024”) exists in the given location and save its result in the {result} output variable as “True”. This output can be used for display or other purposes.