rename b, ... flag 8 renames as if conflict when target value is the same as current value

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
Dustydog
Posts: 321
Joined: 13 Jun 2016 04:19

rename b, ... flag 8 renames as if conflict when target value is the same as current value

Post by Dustydog »

rename b, "JustASingleFile.jpg", , , 8; //Flag 8 = increment on conflict

This will rename a single file from "JustASingleFile.jpg" to "JustASingleFile-01.jpg".

I would expect a single selected file rename to not be identified as a conflict to increment - even if one is attempting to rename it to its original value; just as I would expect multiple files to not rename the first selected item, but to start adding an increment to subsequent, would-be-duplicated, renaming selections - even if the first item is being assigned its starting value.

In other words, my expected behavior would be to have the result consistent regardless of the starting and target value.

admin
Site Admin
Posts: 65051
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: rename b, ... flag 8 renames as if conflict when target value is the same as current value

Post by admin »

Works differently here:

JustASingleFile.jpg -> JustASingleFile.jpg.jpg -> JustASingleFile.jpg-01.jpg -> JustASingleFile.jpg.jpg -> etc. eternally

This looks weird! Not what I would expect to happen. Since the extension is left untouched by this syntax, it should just do this and then stay at "JustASingleFile.jpg.jpg":

JustASingleFile.jpg -> JustASingleFile.jpg.jpg

Okay?

Post Reply