#1 : 04/04-20 19:34 Gilberto Guiza
Posts: 5
|
Hi there,
I don't know if title is clear...I don't think so! sorry!! I have a problem and I don't know how to handle it ... I have a folder with many subfolders. In each subfolder I have files that belong to 5 different groups. *The group id is in the namefile* When I made the groups, I made a mistake naming the files. So aech file from... Group 1 should be renamed group 4 Group 3 should be renamed group 1 Group 4 should rename as group 3 Is there a way to rename the mixed files ensuring that they are unique changes and that with new changing that don't erase the last renaming? When I run replace for each case the changes are mixed !! : / Thank you!!! |
#2 : 04/04-20 19:47 David Lee
Posts: 1125
|
If I understand you correctly you can use the "List replace" method...
Add 3 lines: Text to be replaced -> Replace with Group 1 -> group 4 Group 3 -> group 1 Group 4 -> group 3 Select "Case sensitive" If you didn't actually want to change the case then add a third line: group -> Group |
#3 : 04/04-20 20:03 Gilberto Guiza
Posts: 5
|
Reply to #2:
Hi, thanks for your answer!! I made as you told me but it makes the same problem: There's a problem because each rename is not exclusif. And then it remakes the rename :/ |
#4 : 04/04-20 23:16 David Lee
Posts: 1125
|
Reply to #3:
Try renaming in two passes... Pass 1: "List replace" method... Add 3 lines: Text to be replaced -> Replace with Group 1 -> groop 4 Group 3 -> groop 1 Group 4 -> groop 3 Run the batch and reload all items. Pass 2: "Replace" method... Replace "groop" with "group" |
#5 : 05/04-20 14:10 Gilberto Guiza
Posts: 5
|
Reply to #4:
Hi, I understand the first step with list replace with 3 lines... I don't get the second pass... "Replace "groop" with "group" " -- I don't get it :/ |
#6 : 05/04-20 14:25 Gilberto Guiza
Posts: 5
|
Reply to #5:
I get it finnally but it doesn't work... That I need is to make 3 times and for the second exluding the first renamed, and for the thirth excluding first and second renamed... I wondering if an IF fonction could work...but I have not idea of how it works here :/ |
#7 : 05/04-20 16:37 David Lee
Posts: 1125
|
Reply to #6:
Gilberto It works for me so I must have misunderstood your problem. Can you post examples of your actual filenames and how you want to rename them? |
#8 : 05/04-20 17:31 Gilberto Guiza
Posts: 5
|
Reply to #7:
And finnally!!!!! Thanks a lot I get it and I dit it well Thanks a lot David!! :) |