Copy here with increment to be more intelligent

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

Copy here with increment to be more intelligent

Post by clarkedesign » 29 Jun 2020 14:58

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: 8997
Joined: 06 Feb 2011 00:33

Re: Copy here with increment to be more intelligent

Post by highend » 29 Jun 2020 15:35

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 or paypal_donate (at) stdmail (dot) de

Post Reply