I have to rename a few files but there is some that has the same name after renaming it, how can i only keep one or like skip those that has existing files already?
Cheers
I have to rename a few files but there is some that has the same name after renaming it, how can i only keep one or like skip those that has existing files already?
Cheers
Hi @superpunchypp ,
You need check newname before activity Rename
with path exist you can check it already exist or not
regards
Use a if condition
Currentfile.name.equals(renamenewname)
On then side do nothing and on else side ude the rename
Or
currentfile.name.Split("."c)(0).equals(renamenewname.Split("."c)(0))
Cheers
This’s similar
Regards,
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.