# Problems with pushing tags to filenames

**URL:** https://community.mp3tag.de/t/problems-with-pushing-tags-to-filenames/15758
**Category:** Support
**Created:** [May 22, 2014, 3:54pm UTC](https://community.mp3tag.de/t/problems-with-pushing-tags-to-filenames/15758 "2014-05-22T15:54:24Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [May 22, 2014, 6:18pm UTC](https://community.mp3tag.de/t/problems-with-pushing-tags-to-filenames/15758/3 "2014-05-22T18:18:47Z")

</div>

> [@bennyboy371](#):
>
> ... Right now I have the issue ... to work on any tracks that have a slash in the album name, however. Everything else seems mostly fine. In the case of tracks with a backslash in the album name (in this case, Indie/Rock), it freaks out. ...  
> This example, for instance, should have stayed exactly the same as it was already how I wanted it:  
> "E:\Media\Music\Various Artists(2013) IndieRock Playlist April (2013)\001 - Tessa Rose Jackson - (All The) King's Horses.mp3" -\>  
> "E:\Media\Music\Various Artists(2013) IndieRock Playlist April (2013)\E\Media\Music\Various Artists(2013) IndieRock Playlist April (2013)\001 - Tessa Rose Jackson - (All The) King's Horses.mp3"  
> As you can see, it appends "E\Media\Music" to its current directory rather than what was intended. ...

I doubt that the shown result string comes from the format string, ... because there is a text part doubled, which cannot be the result from your format string, so it will be a different error.

However ... there are forbidden characters for the filename, read there ...  
[Character remapping during conversion?](https://community.mp3tag.de/t/13037/5)

You can use one of the functions $replace or $regexp or $validate to replace forbidden characters with allowed character/s or remove them wholly.

Try out this format string ...

**$validate('E:\Media\Music\'$if2(%ALBUMARTIST%,%ARTIST%)'\'$if(%ALBUM%,'('%YEAR%') '%ALBUM%,'Misc Tracks')'\'$if(%ALBUM%,[$num(%DISCNUMBER%,2)'-']%TRACK%' - ',)%ARTIST%' - '$if2(%TITLE%,'[untitled]'),'~')**

DD.20140522.2223.CEST

---

_[View the full topic](https://community.mp3tag.de/t/problems-with-pushing-tags-to-filenames/15758)._
