# Rename contents with folder name

**URL:** https://community.mp3tag.de/t/rename-contents-with-folder-name/17134
**Category:** General Discussion
**Created:** [August 9, 2015, 12:36am UTC](https://community.mp3tag.de/t/rename-contents-with-folder-name/17134 "2015-08-09T00:36:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Jeffen8](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/bc8723/32.png) [@Jeffen8](https://community.mp3tag.de/u/Jeffen8)
#### Post date: [August 9, 2015, 12:36am UTC](https://community.mp3tag.de/t/rename-contents-with-folder-name/17134/1 "2015-08-09T00:36:29Z")

</div>

i have several thousands of folder with names "12345 artist - songTitle" where the mp3 inside has an unrelated name and usually no tags.

## is there a way to rename all the mp3's with its folders name? ![](http://puu.sh/juATi/a6857f8b85.png) ![](http://puu.sh/juB4b/28407bf360.png)

I tried some of the convert options to see if %path% worked but it didnt seem to do anything since im guessing the Path is not classified as a tag nor a filename

All folders are in E:\Games\osu!\Songs\

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [August 9, 2015, 3:18am UTC](https://community.mp3tag.de/t/rename-contents-with-folder-name/17134/2 "2015-08-09T03:18:55Z")

</div>

Filenames are not so important. As long as the tags are filled correctly you can rename them anytime and anyway as you want. So I think you should fill the tags too.

But to your question to only rename the files:  
Convert-Menue: Tag - Filename  
Format String: %\_directory%

If you then want to fill your tags too:  
Convert- Menue: Filename- Tag  
Format String: %dummy% %artist% - %title%

If you want to fill the 4 digit number at the beginning of your directory name in any tag, just replace %dummy% with your tag in the format string.

And you can also do it in one go in an action group.

---

<div class="post-metadata">

### Author: ![Jeffen8](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/bc8723/32.png) [@Jeffen8](https://community.mp3tag.de/u/Jeffen8)
#### Post date: [August 9, 2015, 8:50am UTC](https://community.mp3tag.de/t/rename-contents-with-folder-name/17134/3 "2015-08-09T08:50:26Z")

</div>

that worked great thansk a lot! saved me a lot of headache 😃
