# folder. jpg to artist - album.jpg

**URL:** https://community.mp3tag.de/t/folder-jpg-to-artist-album-jpg/4122
**Category:** Support
**Created:** [November 29, 2006, 3:43pm UTC](https://community.mp3tag.de/t/folder-jpg-to-artist-album-jpg/4122 "2006-11-29T15:43:31Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![gitcheye](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/67e7ee/32.png) [@gitcheye](https://community.mp3tag.de/u/gitcheye)
#### Post date: [November 29, 2006, 3:43pm UTC](https://community.mp3tag.de/t/folder-jpg-to-artist-album-jpg/4122/1 "2006-11-29T15:43:31Z")

</div>

My MP3 Collection has one file (folder.jpg) in each album directory for my cover art. How can batch change each "folder.jpg" to "album - artist.jpg"?

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [November 29, 2006, 9:42pm UTC](https://community.mp3tag.de/t/folder-jpg-to-artist-album-jpg/4122/2 "2006-11-29T21:42:17Z")

</div>

You could create a batch file with the export tool that renames the files.  
Example:

```
$filename(rename.txt,ansi)$loop(%_folderpath%,1)ren "%_folderpath%folder.jpg" "$replace($validate(%album% - %artist%,_),\,_).jpg"
$loopend()

```

The file extension of the exported file must changed to .bat but try it on a few files first and see if it does what you want.

---

<div class="post-metadata">

### Author: ![gitcheye](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/67e7ee/32.png) [@gitcheye](https://community.mp3tag.de/u/gitcheye)
#### Post date: [November 30, 2006, 2:10pm UTC](https://community.mp3tag.de/t/folder-jpg-to-artist-album-jpg/4122/3 "2006-11-30T14:10:53Z")

</div>

QUOTE (dano @ Nov 29 2006, 16:42) \<{POST\_SNAPBACK}\>

You could create a batch file with the export tool that renames the files.

Example:

```
$filename(rename.txt,ansi)$loop(%_folderpath%,1)ren "%_folderpath%folder.jpg" "$replace($validate(%album% - %artist%,_),\,_).jpg"
$loopend()

```

The file extension of the exported file must changed to .bat but try it on a few files first and see if it does what you want.

I am definitely a greenhorn with this program. I made a test folder and tried this. I selected all of the files in one folder (10 mp3 files & 1 folder.jpg file). I highlighted them and hit export. I named the procedure and then hit edit. I cut and pasted the code above into the notepad and deleted the original information. It did not work. Obviously I am clueless.....

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [November 30, 2006, 2:49pm UTC](https://community.mp3tag.de/t/folder-jpg-to-artist-album-jpg/4122/4 "2006-11-30T14:49:50Z")

</div>

Please don't just write "did not work", you must describe the problem exactly.

---

<div class="post-metadata">

### Author: ![gitcheye](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/67e7ee/32.png) [@gitcheye](https://community.mp3tag.de/u/gitcheye)
#### Post date: [November 30, 2006, 6:41pm UTC](https://community.mp3tag.de/t/folder-jpg-to-artist-album-jpg/4122/5 "2006-11-30T18:41:47Z")

</div>

Sorry....

MP3tag put an excel spreadsheet file on my desktop with one cell that read:

ren "C:\Documents and Settings\Owner\Desktop\TEST\Alan Jackson\A Lot About Livin' and a Little 'Bout Love\folder.jpg" "A Lot About Livin' and a Little 'Bout Love - Alan Jackson.jpg"

The file is named mp3tag.csv

There was no change to the .jpg file that I was trying to change.

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [November 30, 2006, 11:32pm UTC](https://community.mp3tag.de/t/folder-jpg-to-artist-album-jpg/4122/6 "2006-11-30T23:32:47Z")

</div>

As I already wrote, you must change the file extension, so rename the file to mp3tag.bat  
You should also select a different config and then this one again to refresh the $filename() values.

You can also change $filename(rename.txt,ansi) to $filename(rename.bat,ansi) but then the batch file will execute immediately!

[http://en.wikipedia.org/wiki/File\_extension](http://en.wikipedia.org/wiki/File_extension)  
[http://en.wikipedia.org/wiki/Batch\_file](http://en.wikipedia.org/wiki/Batch_file)

---

<div class="post-metadata">

### Author: ![gitcheye](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/67e7ee/32.png) [@gitcheye](https://community.mp3tag.de/u/gitcheye)
#### Post date: [December 1, 2006, 5:55pm UTC](https://community.mp3tag.de/t/folder-jpg-to-artist-album-jpg/4122/7 "2006-12-01T17:55:00Z")

</div>

It worked like a charm. Thanks for the clarification.

---

<div class="post-metadata">

### Author: ![gitcheye](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/67e7ee/32.png) [@gitcheye](https://community.mp3tag.de/u/gitcheye)
#### Post date: [December 1, 2006, 7:11pm UTC](https://community.mp3tag.de/t/folder-jpg-to-artist-album-jpg/4122/8 "2006-12-01T19:11:31Z")

</div>

> [@gitcheye](#):
>
> It worked like a charm. Thanks for the clarification.

So far, I can only get the code to work on one directory at a time. Anytime I select more than one album of MP3s I get a message stating:

Exported information about 10 files was written to file 'C:\Documents and Settings\Owner\Desktop\mp3tag.bat'.

Exported information about 10 files was written to file 'C:\Documents and Settings\Owner\Desktop\mp3tag.bat'.

This occurs over and over for however many albums I try to rename in a group. It still places displays and runs the .bat file but nothing happens to the folder.jpg folder in each directory.

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [December 1, 2006, 7:59pm UTC](https://community.mp3tag.de/t/folder-jpg-to-artist-album-jpg/4122/9 "2006-12-01T19:59:24Z")

</div>

Do NOT check "One file per directory" in the export window.

---

<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:20pm UTC](https://community.mp3tag.de/t/folder-jpg-to-artist-album-jpg/4122/10 "2026-02-09T12:20:01Z")

</div>


