# Rename Folders with MP3 or FLAC indicator

**URL:** https://community.mp3tag.de/t/rename-folders-with-mp3-or-flac-indicator/11422
**Category:** Support
**Created:** [January 10, 2011, 5:45pm UTC](https://community.mp3tag.de/t/rename-folders-with-mp3-or-flac-indicator/11422 "2011-01-10T17:45:07Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [January 31, 2021, 9:51pm UTC](https://community.mp3tag.de/t/rename-folders-with-mp3-or-flac-indicator/11422/12 "2021-01-31T21:51:54Z")

</div>

In a first step you need to find the placeholders for "bit depth" and "sampling frequency".  
If you look here:

> **[Rename Files – Mp3tag Documentation](https://docs.mp3tag.de/converters/rename-files/)**
>
> Documentation on Tag to Filename, a converter to rename files based on tags. Mp3tag is the universal Tag Editor.

you will find possible matches with `%_bitrate%` and `%_samplerate%`  
Maybe you look for `%_bitspersample%`

> [@Bits per sample](https://community.mp3tag.de/t/bits-per-sample/14306/6):
>
> From the [Changelog](https://www.mp3tag.de/en/changelog.html): [2015-11-08] NEW: added information field %\_bitspersample% for some supported file types.

Please check, if this are the correct one.

With the matching placeholders you can build your action and replace the `'('$upper(%_extension%)')'` part with your new found placeholders.

You may find some additional hints in this existing thread:

> [@Rename If Extension](https://community.mp3tag.de/t/rename-if-extension/17710/6):
>
> See the FAQs for that: [/t/967/1](https://community.mp3tag.de/t/967/1) The 3rd example is how to append a string to a field. Instead of the example "xyz" use the field variable, probably %\_tag% and/or %\_bitspersample%. If you enclose the %\_bitspersample% in square brackets, [%\_bitspersample%] it gets treated like an "if" condition.

Please let us know, how your final format string looks like.

---

_[View the full topic](https://community.mp3tag.de/t/rename-folders-with-mp3-or-flac-indicator/11422)._
