Copy here with increment to be more intelligent

Features wanted...
Post Reply
clarkedesign
Posts: 69
Joined: 14 Feb 2013 09:29

Copy here with increment to be more intelligent

Post 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...
Thanks,
Sean Clarke

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Copy here with increment to be more intelligent

Post 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
One of my scripts helped you out? Please donate via Paypal

Post Reply