# Using %discnumber% in MS file name and FB2K

**URL:** https://community.mp3tag.de/t/using-discnumber-in-ms-file-name-and-fb2k/11173
**Category:** Support
**Created:** [November 23, 2010, 7:02am UTC](https://community.mp3tag.de/t/using-discnumber-in-ms-file-name-and-fb2k/11173 "2010-11-23T07:02:48Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![pequickit](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/b77776/32.png) [@pequickit](https://community.mp3tag.de/u/pequickit)
#### Post date: [November 23, 2010, 7:02am UTC](https://community.mp3tag.de/t/using-discnumber-in-ms-file-name-and-fb2k/11173/1 "2010-11-23T07:02:48Z")

</div>

I'd like to use the FooBar2000's title formatting %totaldiscs% tag, but always use MP3Tag to do all my Id3 tagging. FB2K can read a %discnumber% tag when I enter it into MP3Tag in the x/y format. Formatted that way, FB2K can split the 2 values so that %discnumber% will display the disc number, and %totaldiscs% will display the total number of discs.

However for hard drive crash recovery purposes, I always like to have as much metadata present in any given track's file name as possible. But when converting tags to file names, MP3Tag converts x/y to xy, as the MS filesystem precludes the use of the character / in a file name. If I enter anything else into MP3Tag's %discnumber% tag such as x.y, x-y, or x~y, FB2K cannot recognize it.

Has anyone developed a method to address this?

Thanks

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [November 23, 2010, 7:47am UTC](https://community.mp3tag.de/t/using-discnumber-in-ms-file-name-and-fb2k/11173/2 "2010-11-23T07:47:58Z")

</div>

Don't change the discnumber tag, use  
_$replace(%discnumber%,/,-)_ instead of _%discnumber%_  
at your file renaming.  
It replaces the / with a -  
Of course you can pic a different character.

---

<div class="post-metadata">

### Author: ![pequickit](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/b77776/32.png) [@pequickit](https://community.mp3tag.de/u/pequickit)
#### Post date: [November 23, 2010, 1:46pm UTC](https://community.mp3tag.de/t/using-discnumber-in-ms-file-name-and-fb2k/11173/3 "2010-11-23T13:46:36Z")

</div>

> [@dano](#):
>
> Don't change the discnumber tag, use  
> _$replace(%discnumber%,/,-)_ instead of _%discnumber%_  
> at your file renaming.

Great... I'd never have figured out that kind of string formatting.

How would you then format a string that would take that part of the file name, x-y, and copy it back to the %discnumber% tag in the x/y format?

Thanks for all your good work with MP3Tag support Dano

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [November 23, 2010, 10:47pm UTC](https://community.mp3tag.de/t/using-discnumber-in-ms-file-name-and-fb2k/11173/4 "2010-11-23T22:47:27Z")

</div>

If you use the converter, you will have to apply a "Replace" action afterwards.

Or you can create an action that does it all at once.

---

<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: [February 9, 2026, 12:22pm UTC](https://community.mp3tag.de/t/using-discnumber-in-ms-file-name-and-fb2k/11173/5 "2026-02-09T12:22:42Z")

</div>


