Stuck in a rename loop
Posted: 24 Jul 2008 12:33
I've got a KS configured to execute this script:
So i've got 2 files: abc.ext and xyz.ext (where ext is extension and is the same for both files). I click on abc.ext and hit my KS, it renames it into folder's name. I click on xyz.ext and hit my KS and it renames it into folder name with addition of "-01" as defined in config. I go to rename the latter to remove the "-01" off the end. I click off then then a Windows window pops up asking if I want to rename the latter into what it was but with (2) at the end. This is understandable because it has detected me trying to have 2 files with the same name and extension and god forbid a user trying to have that.
However, the way it's being dealt with is very inefficient. No, I don't to rename it into same but with (2) at the end. Yet, it won't have that. I can keep on clicking No until Logitech will go into liquidation but I'll still be stuck in that loop.
So 2 possibilities:
a) Allow me to click No and take me back to file in "edit name" mode so I can fix it myself
b) Allow 2 files with same name/ext in the same folder based on md5 to differentiate.
I know that having a) would be problematic because XYplorer uses a system function to throw the window. I also know that having b) would be more difficult because it's not native WE behaviour.
So what shall we do?
Code: Select all
regexreplace $name, <curitem>, "^.+\\([^\\]+?)\\[^\\]+?.*$", "$1";
rename bat, $name;However, the way it's being dealt with is very inefficient. No, I don't to rename it into same but with (2) at the end. Yet, it won't have that. I can keep on clicking No until Logitech will go into liquidation but I'll still be stuck in that loop.
So 2 possibilities:
a) Allow me to click No and take me back to file in "edit name" mode so I can fix it myself
b) Allow 2 files with same name/ext in the same folder based on md5 to differentiate.
I know that having a) would be problematic because XYplorer uses a system function to throw the window. I also know that having b) would be more difficult because it's not native WE behaviour.
So what shall we do?