Hello Everyone,
I need a help for Renaming multiple file names with sequential alphabets as suffix and moving to another folder. I am attaching the example scenario as reference. Kindly help me on this as soon as possible.
Thanks in advance.
Hello Everyone,
I need a help for Renaming multiple file names with sequential alphabets as suffix and moving to another folder. I am attaching the example scenario as reference. Kindly help me on this as soon as possible.
Thanks in advance.
Hello @Gopi_Gurram
Please confirm how you are getting the new file name?
Are you using any logic to create this numerical part in the new name?
Thanks
Hi @Gopi_Gurram ,
Assuming all files names end with numerical values , could you give this a try and let us know if it works out for you?
UiPath.Excel.Helpers.ExcelUtilities.ConvertColumnIndexToColumnLetter(idx+1).ToLower()
System.Text.RegularExpressions.Regex.Replace(Path.GetFileNameWithoutExtension(file),"(?<=\-)\d+",str_replacement)
To move the files, use a Move File Activity after renaming it.
RenameFiles.xaml (12.3 KB)
Kind Regards,
Ashwin A.K