Page 1 of 1

Copy here with increment to be more intelligent

Posted: 29 Jun 2020 14:58
by clarkedesign
We use "Copy here with increment" often to duplicate files and would like it to be more intelligent with the number suffix it creates.

If we "duplicate" (Ctrl-D) a file named "book 2019.txt", we would expect it to be renamed to "book 2020.txt", but instead it creates "book 2019-01.txt"

If we then duplicate "book 2019-01.txt" we get "book 2019-01-01.txt" ?!?
Surely it should be "book 2019-02.txt" at the very least.


It would be nice if when duplicating a file, XYplorer examines the last part of the base file name.
If this is already a valid number, then increment the new file name by using that existing number plus one.
If not then by all means add the '-01' suffix.

So "book 2019.txt" becomes "book 2020.txt"
So "book 2019-01.txt" becomes "book 2019-02.txt"
etc...

Re: Copy here with increment to be more intelligent

Posted: 29 Jun 2020 15:35
by highend
If we then duplicate "book 2019-01.txt" we get "book 2019-01-01.txt" ?!?
Surely it should be "book 2019-02.txt" at the very least.
No. That would happen if you create a duplicate of "book 2019.txt" again...

Scripting is the way to go here