# Creating album, name from pathname

**URL:** https://community.mp3tag.de/t/creating-album-name-from-pathname/68802
**Category:** Support
**Created:** [June 10, 2025, 5:56pm UTC](https://community.mp3tag.de/t/creating-album-name-from-pathname/68802 "2025-06-10T17:56:01Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![reddwarf4ever](https://community.mp3tag.de/user_avatar/community.mp3tag.de/reddwarf4ever/32/22473_2.png) [@reddwarf4ever](https://community.mp3tag.de/u/reddwarf4ever)
#### Post date: [June 10, 2025, 5:56pm UTC](https://community.mp3tag.de/t/creating-album-name-from-pathname/68802/1 "2025-06-10T17:56:01Z")

</div>

I have several hundred music tracks, but no album name, I want to create an album name based on the path name, automatically with an action if possible, using the last part of the pathname....e.g. road trip best hits CD3  
can someone help please

i thought i would do it manually but cant copy the pathname as text......but an action would be so much better  
thank you

---

<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: [June 10, 2025, 6:00pm UTC](https://community.mp3tag.de/t/creating-album-name-from-pathname/68802/2 "2025-06-10T18:00:20Z")

</div>

Try Convert\>Filename-Tag  
Format string: `%album%\%dummy%`

---

<div class="post-metadata">

### Author: ![reddwarf4ever](https://community.mp3tag.de/user_avatar/community.mp3tag.de/reddwarf4ever/32/22473_2.png) [@reddwarf4ever](https://community.mp3tag.de/u/reddwarf4ever)
#### Post date: [June 10, 2025, 6:20pm UTC](https://community.mp3tag.de/t/creating-album-name-from-pathname/68802/3 "2025-06-10T18:20:17Z")

</div>

I am referring to oath name not filename

The explorer path  
👌

---

<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: [June 10, 2025, 6:21pm UTC](https://community.mp3tag.de/t/creating-album-name-from-pathname/68802/4 "2025-06-10T18:21:58Z")

</div>

A fully or partially qualified filename also includes the path.  
Have you tried it?  
And if you don't believe me, them have a look at the documentation:

> **[Import Tags from File and Folder Names – Mp3tag Documentation](https://docs.mp3tag.de/converters/import-tags-from-filenames/)**
>
> Documentation on Filename to Tag, a converter to import tags from file and folder names. Mp3tag is the universal Tag Editor.

---

<div class="post-metadata">

### Author: ![reddwarf4ever](https://community.mp3tag.de/user_avatar/community.mp3tag.de/reddwarf4ever/32/22473_2.png) [@reddwarf4ever](https://community.mp3tag.de/u/reddwarf4ever)
#### Post date: [June 10, 2025, 7:35pm UTC](https://community.mp3tag.de/t/creating-album-name-from-pathname/68802/5 "2025-06-10T19:35:48Z")

</div>

I still don't think I'm explaining myself correctly

I am referring to the Windows explorer path name,e.g. C:my best music/Bestnumberrones/CD3

So I would want to name the album CD3, the final part of the PATHname.

Thanks

---

<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: [June 10, 2025, 7:47pm UTC](https://community.mp3tag.de/t/creating-album-name-from-pathname/68802/6 "2025-06-10T19:47:06Z")

</div>

Please, please, please - try it.

---

<div class="post-metadata">

### Author: ![reddwarf4ever](https://community.mp3tag.de/user_avatar/community.mp3tag.de/reddwarf4ever/32/22473_2.png) [@reddwarf4ever](https://community.mp3tag.de/u/reddwarf4ever)
#### Post date: [June 10, 2025, 10:36pm UTC](https://community.mp3tag.de/t/creating-album-name-from-pathname/68802/7 "2025-06-10T22:36:27Z")

</div>

Ok will try tomorrow

Really can't see how filename has anything to do with the windows path

But I will try it 🤞

Need the last part of the path will thus do that  
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: [June 11, 2025, 6:20am UTC](https://community.mp3tag.de/t/creating-album-name-from-pathname/68802/8 "2025-06-11T06:20:09Z")

</div>

Instead of asking the same question repeatedly, you could just try the solution provided by @ohrenkino.

If you would use the Convert Filename -\> Tag function

> [@reddwarf4ever](#):
>
> Really can't see how filename has anything to do with the windows path

you would immediately see how it works for your windows path and how the Convert Filename -\> Tag is using the documented

> Import Tags from File and **Folder Names**
> 
> Import Parts of the File Name to the Tag
> 
> **Importing** tags **from** filenames **and directory names** can be done by using **Convert → Filename - Tag**.

Folder names = directory names = path names = windows path

So please stop asking if it "will thus do that" and try it by yourself with your own real pathnames.

If it doesn't work, feel free to ask again showing us your real example and the Format string you used.

---

<div class="post-metadata">

### Author: ![reddwarf4ever](https://community.mp3tag.de/user_avatar/community.mp3tag.de/reddwarf4ever/32/22473_2.png) [@reddwarf4ever](https://community.mp3tag.de/u/reddwarf4ever)
#### Post date: [June 12, 2025, 6:24pm UTC](https://community.mp3tag.de/t/creating-album-name-from-pathname/68802/9 "2025-06-12T18:24:31Z")

</div>

so how do i select the text before last part of the path name...?

---

<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: [June 12, 2025, 6:26pm UTC](https://community.mp3tag.de/t/creating-album-name-from-pathname/68802/10 "2025-06-12T18:26:34Z")

</div>

Seriously?  
_(and I have to write 20 characters...)_

> [@ohrenkino](#):
>
> Try Convert\>Filename-Tag  
> Format string: `%album%\%dummy%`

---

<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: [June 12, 2025, 6:31pm UTC](https://community.mp3tag.de/t/creating-album-name-from-pathname/68802/11 "2025-06-12T18:31:10Z")

</div>

> [@reddwarf4ever](#):
>
> Ok will try tomorrow

What was the result?

---

<div class="post-metadata">

### Author: ![reddwarf4ever](https://community.mp3tag.de/user_avatar/community.mp3tag.de/reddwarf4ever/32/22473_2.png) [@reddwarf4ever](https://community.mp3tag.de/u/reddwarf4ever)
#### Post date: [June 12, 2025, 6:32pm UTC](https://community.mp3tag.de/t/creating-album-name-from-pathname/68802/12 "2025-06-12T18:32:39Z")

</div>

i tried Try Convert\>Filename-Tag  
Format string: `%album%\%dummy%`  
but i need the text before the last /  
e.g. that's the best music/cd1  
i need that's the best music as the album

---

<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: [June 12, 2025, 6:33pm UTC](https://community.mp3tag.de/t/creating-album-name-from-pathname/68802/13 "2025-06-12T18:33:49Z")

</div>

> [@reddwarf4ever](#):
>
> So I would want to name the album CD3, the final part of the PATHname.

> [@reddwarf4ever](#):
>
> but i need the text before the last /  
> e.g. that's the best music/cd1  
> i need that's the best music as the album

What do you really want?

---

<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: [June 12, 2025, 6:34pm UTC](https://community.mp3tag.de/t/creating-album-name-from-pathname/68802/14 "2025-06-12T18:34:30Z")

</div>

If you need 2 folder levels up from the filename (which you did not say before), then try  
Format string: `%album%\%dummy%\%dummy%`

---

<div class="post-metadata">

### Author: ![reddwarf4ever](https://community.mp3tag.de/user_avatar/community.mp3tag.de/reddwarf4ever/32/22473_2.png) [@reddwarf4ever](https://community.mp3tag.de/u/reddwarf4ever)
#### Post date: [June 12, 2025, 6:59pm UTC](https://community.mp3tag.de/t/creating-album-name-from-pathname/68802/15 "2025-06-12T18:59:01Z")

</div>

thanks, will try.........I thought all these albums were fully populated albums etc but suddenly only have filenames 😉

---

<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: [June 12, 2025, 7:03pm UTC](https://community.mp3tag.de/t/creating-album-name-from-pathname/68802/16 "2025-06-12T19:03:48Z")

</div>

???

> [@reddwarf4ever](#):
>
> were fully populated albums

For what do you need the import from the path if the album title was already there?

---

<div class="post-metadata">

### Author: ![reddwarf4ever](https://community.mp3tag.de/user_avatar/community.mp3tag.de/reddwarf4ever/32/22473_2.png) [@reddwarf4ever](https://community.mp3tag.de/u/reddwarf4ever)
#### Post date: [June 13, 2025, 2:18pm UTC](https://community.mp3tag.de/t/creating-album-name-from-pathname/68802/17 "2025-06-13T14:18:29Z")

</div>

Thank you  
That worked perfectly

Cheers

---

<div class="post-metadata">

### Author: ![reddwarf4ever](https://community.mp3tag.de/user_avatar/community.mp3tag.de/reddwarf4ever/32/22473_2.png) [@reddwarf4ever](https://community.mp3tag.de/u/reddwarf4ever)
#### Post date: [June 13, 2025, 7:27pm UTC](https://community.mp3tag.de/t/creating-album-name-from-pathname/68802/18 "2025-06-13T19:27:13Z")

</div>

I don't have the album info, that's why I planned to use the path to add an album title  
Going to try music brainz Picard hopefully will populate all from the database 🤞

---

<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: [July 13, 2025, 7:27pm UTC](https://community.mp3tag.de/t/creating-album-name-from-pathname/68802/19 "2025-07-13T19:27:21Z")

</div>

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