"Copy with increment" not working correctly
Forum rules
You might want to read this if you're looking for priority service
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%).
Use Your Profile Or Signature
We strongly 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, and we won't have to search for that vital information.
How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
You might want to read this if you're looking for priority service
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%).
We strongly 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, and we won't have to search for that vital information.
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
-
rhoelzl
- Posts: 200
- Joined: 28 Dec 2009 11:20
"Copy with increment" not working correctly
If I create a folder called "test1" and then repeatedly use "copy with increment" this is what I get:
test1
test1.001
test1.001.001
test1.001.001.001
etc.
Ditto for a folder called "1. Test" I get
1. Test
1.001. Test
1.001.001. Test
etc.
test1
test1.001
test1.001.001
test1.001.001.001
etc.
Ditto for a folder called "1. Test" I get
1. Test
1.001. Test
1.001.001. Test
etc.
-
admin
- Site Admin
- Posts: 67299
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: "Copy with increment" not working correctly
Works fine here.
Configuration | Templates | Incremental affix: -01
Configuration | Templates | Incremental affix: -01
FAQ | XY News RSS | XY X
-
rhoelzl
- Posts: 200
- Joined: 28 Dec 2009 11:20
Re: "Copy with increment" not working correctly
I have tried setting that setting to -01 as you recommend, but then I get
Neue Textdatei.txt
Neue Textdatei-01.txt
Neue Textdatei-01-01.txt
Neue Textdatei-01-01-01.txt
etc.
The counter does not increment, it just adds the suffix every time.
Neue Textdatei.txt
Neue Textdatei-01.txt
Neue Textdatei-01-01.txt
Neue Textdatei-01-01-01.txt
etc.
The counter does not increment, it just adds the suffix every time.
-
admin
- Site Admin
- Posts: 67299
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: "Copy with increment" not working correctly
Of course you always have to have Neue Textdatei.txt selected. You can copy "Neue Textdatei-01.txt" and expect to get "Neue Textdatei-02.txt".
FAQ | XY News RSS | XY X
-
rhoelzl
- Posts: 200
- Joined: 28 Dec 2009 11:20
Re: "Copy with increment" not working correctly
Ah, I see. Thanks for the explanation.
That is not what one would expect from the name "copy with increment", but okay, why not.
Thanks.
That is not what one would expect from the name "copy with increment", but okay, why not.
Thanks.
-
Borut
- Posts: 1472
- Joined: 19 Oct 2010 19:29
- Location: Win10 Pro 64b 22H2, @120DPI (125%)
Re: "Copy with increment" not working correctly
I believe I can confirm the problem too.
Interesting... After trying to always copy the newest one...
Neue Textdatei.txt
Neue Textdatei-01.txt
Neue Textdatei-01-01.txt
...try now to copy the middle one (here the red one) - I am then getting:
Neue Textdatei-01-02.txt
This is the only time when an incrementing actually takes place (although even here obviously after an unexpected try to append another suffix).
@Don
Ahaaa, you are right Don. This is indeed also the logic of the MS WE.
But, I must say, the usage logic of rhoelzl is appealing too. I would also be one of those to welcome an additional intelligent check: If the name pattern of the selected file already coincides with the suffix pattern, then do not append another suffix, but make a new name by only incrementing what is already there.
Interesting... After trying to always copy the newest one...
Neue Textdatei.txt
Neue Textdatei-01.txt
Neue Textdatei-01-01.txt
...try now to copy the middle one (here the red one) - I am then getting:
Neue Textdatei-01-02.txt
This is the only time when an incrementing actually takes place (although even here obviously after an unexpected try to append another suffix).
@Don
Ahaaa, you are right Don. This is indeed also the logic of the MS WE.
But, I must say, the usage logic of rhoelzl is appealing too. I would also be one of those to welcome an additional intelligent check: If the name pattern of the selected file already coincides with the suffix pattern, then do not append another suffix, but make a new name by only incrementing what is already there.
Last edited by Borut on 03 Feb 2013 21:00, edited 1 time in total.
Win 10 Pro 64bit
-
admin
- Site Admin
- Posts: 67299
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: "Copy with increment" not working correctly
Well, it's what I expect. And I have never seen something different. To correctly recognize a part of a filename as increment takes intelligence, world knowledge, and luck. Too much for a machine.
FAQ | XY News RSS | XY X
-
PeterH
- Posts: 2830
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
Re: "Copy with increment" not working correctly
I'd also expect it to work as it does!
After I copy "test1" I'd expect "test1.001" to be created. OK.
Now after I copy "test1" again it should be "test1.002", OK too, but:
if instead I copy test1.001 it should *not* be the same, but "test1.001.001" (the douplicate is of "test1.001")
So from my POV everything works fine.
After I copy "test1" I'd expect "test1.001" to be created. OK.
Now after I copy "test1" again it should be "test1.002", OK too, but:
if instead I copy test1.001 it should *not* be the same, but "test1.001.001" (the douplicate is of "test1.001")
So from my POV everything works fine.
-
rhoelzl
- Posts: 200
- Joined: 28 Dec 2009 11:20
Re: "Copy with increment" not working correctly
OK, I guess there are two possible philosophies here. With the way it is implemented right now it is not clear to me in how many situations it will be useful. I don't think I will ever use it like this. But maybe different people see it differently.
But I guess even if it were implemented the way I would except it, it is a feature I would not use that often, so I can certainly do things manually in those cases. Why not.
(BTW, I don't quite see in which sense it would be complicated to implement it the other way. Just find the last sequence of digits in the filename, increase it by one while maintaining possible leading zeros. If no numbers appear in the filename, use the suffix as it does at the moment. But again, not high priority for me.)
But I guess even if it were implemented the way I would except it, it is a feature I would not use that often, so I can certainly do things manually in those cases. Why not.
(BTW, I don't quite see in which sense it would be complicated to implement it the other way. Just find the last sequence of digits in the filename, increase it by one while maintaining possible leading zeros. If no numbers appear in the filename, use the suffix as it does at the moment. But again, not high priority for me.)
-
Borut
- Posts: 1472
- Joined: 19 Oct 2010 19:29
- Location: Win10 Pro 64b 22H2, @120DPI (125%)
Re: "Copy with increment" not working correctly
Although I would like to have another logic as much as you do, it is a fact that it is much much more complicated than that (and that is why it is possibly not worth doing it). Reason: the definition of affixes is very broad...rhoelzl wrote:(BTW, I don't quite see in which sense it would be complicated to implement it the other way. Just find the last sequence of digits in the filename, increase it by one while maintaining possible leading zeros. If no numbers appear in the filename, use the suffix as it does at the moment. But again, not high priority for me.)
-01
(b)
_000
Copy of *-01
kasdjakjsd * - 005 - klsdjcfdskj
...
So, easy it is not.
Win 10 Pro 64bit
-
rhoelzl
- Posts: 200
- Joined: 28 Dec 2009 11:20
Re: "Copy with increment" not working correctly
No, as I said, just use the last sequence of numbers in the filename.
"(b)" would not work of course, but I think we can live without that.
"(b)" would not work of course, but I think we can live without that.
-
Borut
- Posts: 1472
- Joined: 19 Oct 2010 19:29
- Location: Win10 Pro 64b 22H2, @120DPI (125%)
Re: "Copy with increment" not working correctly
I think that this would be an oversimplification and knowing Don, well...
A real world example: This is a filename of a kind I have all over the place:
ABC_20130205.xxx
If my affix pattern is -01, then I expect to get: ABC_20130205-01.xxx, ABC_20130205-02.xxx (also when copying ABC_20130205-01.xxx, like you do), ABC_20130205-03.xxx,
but not ABC_20130206.xxx after a first copy. So, the logic should take into account the currently used pattern too, I am afraid. Otherwise it would suit you, and probably me too in some situations, but in some it would be deadly.
A real world example: This is a filename of a kind I have all over the place:
ABC_20130205.xxx
If my affix pattern is -01, then I expect to get: ABC_20130205-01.xxx, ABC_20130205-02.xxx (also when copying ABC_20130205-01.xxx, like you do), ABC_20130205-03.xxx,
but not ABC_20130206.xxx after a first copy. So, the logic should take into account the currently used pattern too, I am afraid. Otherwise it would suit you, and probably me too in some situations, but in some it would be deadly.
Win 10 Pro 64bit
-
rhoelzl
- Posts: 200
- Joined: 28 Dec 2009 11:20
Re: "Copy with increment" not working correctly
Again, I would ONLY use the suffix pattern if no previous number is there. So:
ABC_20130205.xxx
ABC_20130206.xxx
ABC_20130207.xxx
ABC_20130208.xxx
etc.
but on the other hand
text.txt
text-01.txt
text-02.txt
text-03.txt
etc.
(assuming that the suffix pattern is defined as "-01").
Leading zeros would have to be respected so
text0001.txt
text0002.txt
text0003.txt
etc.
ABC_20130205.xxx
ABC_20130206.xxx
ABC_20130207.xxx
ABC_20130208.xxx
etc.
but on the other hand
text.txt
text-01.txt
text-02.txt
text-03.txt
etc.
(assuming that the suffix pattern is defined as "-01").
Leading zeros would have to be respected so
text0001.txt
text0002.txt
text0003.txt
etc.
-
rhoelzl
- Posts: 200
- Joined: 28 Dec 2009 11:20
Re: "Copy with increment" not working correctly
Maybe there should be two commands: "Copy with suffix" and "Copy with increment".
If someone wants the behaviour you describe above, they could FIRST copy with "copy with suffix" to get the "-01" attached to the filename, and then apply several times "copy with increment" to get -02, -03 and so on.
If it would be done like this at least both commands would do what their names suggest.
If someone wants the behaviour you describe above, they could FIRST copy with "copy with suffix" to get the "-01" attached to the filename, and then apply several times "copy with increment" to get -02, -03 and so on.
If it would be done like this at least both commands would do what their names suggest.
-
LittleBiG
- Posts: 1848
- Joined: 08 Apr 2011 12:57
- Location: Win10x64
Re: "Copy with increment" not working correctly
I was sure somebody already had problem this way of working. Unfortunatelly I come accross with this daily, because I usually have to copy my earlier version as a new one with a new increment and continue my work in it. So if I have a folder or file suffixed by a date, Copy Here With Current Date should change the date instead of adding the date to the end simply (dumbly).
EDIT: I know it is not a bug. It is a wish. But I didn't want to open a new topic.
I am not sure about this. You can come up with strict rules when you can do it, the most basic cases, when recognizing the data or increment is clear. And in any other cases (special ones) you use the current working, adding increment to the unrecognizable increment.admin wrote:Well, it's what I expect. And I have never seen something different. To correctly recognize a part of a filename as increment takes intelligence, world knowledge, and luck. Too much for a machine.
EDIT: I know it is not a bug. It is a wish. But I didn't want to open a new topic.
XYplorer Beta Club