# Writing filenames with square brackets \[ \]

**URL:** https://community.mp3tag.de/t/writing-filenames-with-square-brackets/14459
**Category:** Support
**Created:** [February 17, 2013, 6:00pm UTC](https://community.mp3tag.de/t/writing-filenames-with-square-brackets/14459 "2013-02-17T18:00:33Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![get8p](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/b9bd4f/32.png) [@get8p](https://community.mp3tag.de/u/get8p)
#### Post date: [February 17, 2013, 6:00pm UTC](https://community.mp3tag.de/t/writing-filenames-with-square-brackets/14459/1 "2013-02-17T18:00:33Z")

</div>

Hi people.

I got this little problem. When I'm writing filenames from tags, I have use next string  
**%artist% - %title% (%album%)**

Whilst I want it to be this  
**%artist% - %title% [%album%]**

But the prog just seems to ignore these. And when there's uneven quantity of square brackets, here's what I get  
 ![](http://img16.imageshack.us/img16/5584/20130217204920.jpg)

How do I make it right?  
Thanks.

---

<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: [February 17, 2013, 6:14pm UTC](https://community.mp3tag.de/t/writing-filenames-with-square-brackets/14459/2 "2013-02-17T18:14:00Z")

</div>

Press the HELP-Button and you will see/find the syntax:  
%artist% - %title% '['%album%']'

---

<div class="post-metadata">

### Author: ![get8p](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/b9bd4f/32.png) [@get8p](https://community.mp3tag.de/u/get8p)
#### Post date: [February 17, 2013, 6:53pm UTC](https://community.mp3tag.de/t/writing-filenames-with-square-brackets/14459/3 "2013-02-17T18:53:47Z")

</div>

Thanks a bunch!

Per any chance, d'you know how to write a track number in a way that it would automatically add zero if there isn't one, in filename? **%track%** won't do it. And also, if the tracks has numbers like 1/10, 2/10, instead of 1 and 2, it tries to write these "/10" aswell

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [February 17, 2013, 6:55pm UTC](https://community.mp3tag.de/t/writing-filenames-with-square-brackets/14459/4 "2013-02-17T18:55:33Z")

</div>

> [@get8p](#):
>
> ... add zero if there isn't one, in filename? **%track%** won't do it.

Quite.  
Use $num(%track%,2) or $num(%track%,3)

---

<div class="post-metadata">

### Author: ![get8p](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/b9bd4f/32.png) [@get8p](https://community.mp3tag.de/u/get8p)
#### Post date: [February 17, 2013, 6:59pm UTC](https://community.mp3tag.de/t/writing-filenames-with-square-brackets/14459/5 "2013-02-17T18:59:53Z")

</div>

Yep, works!

**LyricsLover** , **ohrenkino** , thanks a lot guys!

---

<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:24pm UTC](https://community.mp3tag.de/t/writing-filenames-with-square-brackets/14459/6 "2026-02-09T12:24:20Z")

</div>


