# Filenames to tag when hyphens are not present

**URL:** <https://community.mp3tag.de/t/filenames-to-tag-when-hyphens-are-not-present/57816>\
**Category:** Support\
**Created:** [July 3, 2022, 4:13am UTC](https://community.mp3tag.de/t/filenames-to-tag-when-hyphens-are-not-present/57816 "2022-07-03T04:13:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![triks\_melb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/3be4f8/32.png) [@triks\_melb](https://community.mp3tag.de/u/triks_melb)\
**Post date:** [July 3, 2022, 4:13am UTC](https://community.mp3tag.de/t/filenames-to-tag-when-hyphens-are-not-present/57816/1 "2022-07-03T04:13:31Z")

</div>

Tried many suggestions but can no work this out yet...  
Would like to create a tag (artist - album) from 2 parts of the last directory and use the artist and album name to create the directory structure.

Current files:

\pathtofiles\Rock Music by John Smith\1.mp3  
\pathtofiles\Rock Music by John Smith\2.mp3  
\pathtofiles\Rock Music by John Smith\3.mp3  
\pathtofiles\Rock Music by John Smith\4.mp3

\pathtofiles\Dance Music by Angela Smith\1.mp3  
\pathtofiles\Dance Music by Angela Smith\2.mp3  
\pathtofiles\Dance Music by Angela Smith\3.mp3  
\pathtofiles\Dance Music by Angela Smith\4.mp3

Hope to get this result

\pathtofiles\John Smith \Rock Music  
John Smith - Rock Music 1.mp3  
John Smith - Rock Music 2.mp3  
John Smith - Rock Music 3.mp3  
John Smith - Rock Music 4.mp3

\pathtofiles\Angela Smith \Dance Music  
Angela Smith - Dance Music 1.mp3  
Angela Smith - Dance Music 2.mp3  
Angela Smith - Dance Music 3.mp3  
Angela Smith - Dance Music 4.mp3

thank you in advance.

---

<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:** [July 3, 2022, 5:04am UTC](https://community.mp3tag.de/t/filenames-to-tag-when-hyphens-are-not-present/57816/2 "2022-07-03T05:04:27Z")

</div>

What data do you have in the fields ARTIST, ALBUM, TRACK?  
If the tag fields are still empty, I would import them first.  
Filenames are no tags.

---

<div class="post-metadata">

**Author:** ![triks\_melb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/3be4f8/32.png) [@triks\_melb](https://community.mp3tag.de/u/triks_melb)\
**Post date:** [July 3, 2022, 5:24am UTC](https://community.mp3tag.de/t/filenames-to-tag-when-hyphens-are-not-present/57816/3 "2022-07-03T05:24:37Z")

</div>

tags are empty - thus the reason for trying to populate them from the directory structure/filename.

---

<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:** [July 3, 2022, 5:42am UTC](https://community.mp3tag.de/t/filenames-to-tag-when-hyphens-are-not-present/57816/4 "2022-07-03T05:42:44Z")

</div>

> [@triks\_melb](#):
>
> \pathtofiles\Rock Music by John Smith\1.mp3

Try Converter\>Filename-Tag with  
`%album% by %artist%\%track%`

And then try Converter\>Tag-Filename with  
Format string: `%artist% - %album% %track%`

and then Converter\>Tag\>Tag for \_DIRECTORY  
Format string: `d:\my music\%artist%\%album%`  
Of course, you have to set the correct path start instead of d:\my music

---

<div class="post-metadata">

**Author:** ![triks\_melb](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/3be4f8/32.png) [@triks\_melb](https://community.mp3tag.de/u/triks_melb)\
**Post date:** [July 3, 2022, 6:55am UTC](https://community.mp3tag.de/t/filenames-to-tag-when-hyphens-are-not-present/57816/5 "2022-07-03T06:55:40Z")

</div>

perfect - thank you so much for your prompt help.

---

<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 2, 2022, 6:56am UTC](https://community.mp3tag.de/t/filenames-to-tag-when-hyphens-are-not-present/57816/6 "2022-08-02T06:56:23Z")

</div>

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