![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
Hello: We have a lot of files where we are modifiying and renaming, and basically I want to keep the same file name intact but just append a suffix onto the file name. Example. Original Files: File1.html File2.html Renamed Files File1-DONE.html File2-DONE.html How exaclty is this done? Thanks, Adam |
| |||
|
Adam, If your file names are located in a variable then why not perform a split of the variable so that each part is moved into a variable and then perform a merge of all three parts.
__________________ Frank Bradley Centah Inc |
| |||
|
Adam, If your file names are located in a variable then why not perform a split of the variable so that each part is moved into a variable and then perform a merge of all three parts.
__________________ Frank Bradley Centah Inc |
| |||
|
Hello, What you can do is, loop for each file in a specific folder and inside loop block check if file is modified in 0 or 1 day then rename the file by appending suffix to system variable, $Filename$. We have attached a sample task for your reference. Please copy it under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder. Before running the task, you may need to change the folder location at line #1 as per your requirement. Hope that helps. |
| |||
|
Thanks this seems to do the trick, I was not using the $Extension$ Variable in my code and but this Loop does the trick and works like a champ. Adam |
![]() |
| Thread Tools | |
| Display Modes | |
| |