# %\_total\_files% behavior changed after V2.91, noticed in V2.95 and 2.96

**URL:** https://community.mp3tag.de/t/total-files-behavior-changed-after-v2-91-noticed-in-v2-95-and-2-96/45818
**Category:** Fixed Bugs
**Tags:** bug-fixed
**Created:** [July 5, 2019, 4:57am UTC](https://community.mp3tag.de/t/total-files-behavior-changed-after-v2-91-noticed-in-v2-95-and-2-96/45818 "2019-07-05T04:57:56Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mls](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mls/32/4841_2.png) [@mls](https://community.mp3tag.de/u/mls)
#### Post date: [July 5, 2019, 4:57am UTC](https://community.mp3tag.de/t/total-files-behavior-changed-after-v2-91-noticed-in-v2-95-and-2-96/45818/1 "2019-07-05T04:57:56Z")

</div>

Hello,

I have some export reports that run correctly with MP3Tag v2.91 and earlier, but are not correct in V2.95 and V2.96.

When %\_total\_files% is used inside a loop, a different value is returned under V2.95 and V2.96 than was returned under V2.91 and earlier. I have attached a code snippet and brief samples to illustrate this difference.

Please review the attached at your convenience and advise.

Regards,

Mike[MP3Tag\_Submitted.zip](https://community.mp3tag.de/uploads/short-url/u82eweFaiozSQj9a0wpmZCfry69.zip) (1.6 KB)

---

<div class="post-metadata">

### Author: ![ryerman](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ryerman/32/5285_2.png) [@ryerman](https://community.mp3tag.de/u/ryerman)
#### Post date: [July 5, 2019, 12:24pm UTC](https://community.mp3tag.de/t/total-files-behavior-changed-after-v2-91-noticed-in-v2-95-and-2-96/45818/2 "2019-07-05T12:24:38Z")

</div>

I won't comment on the different results, based on Mp3tag version. That may indicate a bug.  
But maybe the attached script does what you want.  
[Repaired-07042019.Test.max\_counter.mte](https://community.mp3tag.de/uploads/short-url/6XKiVHAOhZPCJahqProKtz7SMVU.mte) (391 Bytes)

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [July 6, 2019, 9:47am UTC](https://community.mp3tag.de/t/total-files-behavior-changed-after-v2-91-noticed-in-v2-95-and-2-96/45818/3 "2019-07-06T09:47:37Z")

</div>

Thanks for reporting! I've fixed it with [Mp3tag v2.96b](https://community.mp3tag.de/t/455).

---

<div class="post-metadata">

### Author: ![mls](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mls/32/4841_2.png) [@mls](https://community.mp3tag.de/u/mls)
#### Post date: [July 10, 2019, 10:46pm UTC](https://community.mp3tag.de/t/total-files-behavior-changed-after-v2-91-noticed-in-v2-95-and-2-96/45818/4 "2019-07-10T22:46:30Z")

</div>

Excellent, thank you very much!

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [August 9, 2019, 10:46pm UTC](https://community.mp3tag.de/t/total-files-behavior-changed-after-v2-91-noticed-in-v2-95-and-2-96/45818/5 "2019-08-09T22:46:34Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
