Page 1 of 1

Increment On Collision in Rename Special problem

Posted: 11 Aug 2012 19:12
by higham
i/ for "Increment On Collision" in Rename Special is not working (XYPLORER 11.40).
For example renaming two files created today with

<datem yyyymmdd>/i

produces a clash in the preview and then in the actual rename.

Options -Template "filename affixes" is at the default of "-01".

---Nick Higham

Re: Increment On Collision in Rename Special problem

Posted: 13 Aug 2012 20:11
by admin
The pattern <datem yyyymmdd>/i works when a file named <datem yyyymmdd> already exists before the rename job starts. It does not when a file named <datem yyyymmdd> is created through the rename job. For this case you better state the increment right in the pattern: <datem yyyymmdd>-<#01>.

Re: Increment On Collision in Rename Special problem

Posted: 03 Mar 2015 23:02
by GamaRex
Is there some way to pre-flag files that are potential rename collisions in order to handle renaming those separately from other files in a folder?

My scenario is photos imported from a mobile phone that I'd like to rename with a date filename, but there are usually a very few collisions predicted.
This is my rename pattern:
CameraName <dateexif yyyy_mmdd hh-nn-ss>

I can use this as suggested by your post:
CameraName <dateexif yyyy_mmdd hh-nn-ss>-<#01>

However, I'd prefer a method where it would append numbers only when there's a conflict, not to every file, since the suffixes are meaningless for the non-conflict files.

My guess is that it isn't possible, but I thought I should ask in case I've missed something, or if others have found better techniques for renaming photo files.

Re: Increment On Collision in Rename Special problem

Posted: 04 Mar 2015 11:16
by admin
It's possible using the /i switch:

Code: Select all

CameraName <dateexif yyyy_mmdd hh-nn-ss> /i

Re: Increment On Collision in Rename Special problem

Posted: 04 Mar 2015 12:43
by RalphM
Isn't that exactly what the OP started with when the problem arose?

Re: Increment On Collision in Rename Special problem

Posted: 04 Mar 2015 13:02
by admin
RalphM wrote:Isn't that exactly what the OP started with when the problem arose?
Uh, yes, I did not look at the beginning of the thread.

However, I tested it and it seems to work.

Re: Increment On Collision in Rename Special problem

Posted: 04 Mar 2015 14:56
by GamaRex
You're right: I found that it does work after I changed my formula to /i using a lowercase "i". I had been using an uppercase "I" and it would warn me of a collision. When I change it to lowercase, no warning, and the renaming works as I want. Nice surprise!

Re: Increment On Collision in Rename Special problem

Posted: 04 Mar 2015 15:01
by admin
Yes, the switches are case-sensitive. There is no uppercase /I switch here.

Glad it works. :)