# ...code needed for renaming please !

**URL:** https://community.mp3tag.de/t/code-needed-for-renaming-please/17510
**Category:** General Discussion
**Created:** [December 29, 2015, 7:02pm UTC](https://community.mp3tag.de/t/code-needed-for-renaming-please/17510 "2015-12-29T19:02:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![futz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/e5b9ba/32.png) [@futz](https://community.mp3tag.de/u/futz)
#### Post date: [December 29, 2015, 7:02pm UTC](https://community.mp3tag.de/t/code-needed-for-renaming-please/17510/1 "2015-12-29T19:02:16Z")

</div>

Hi all, I tried lots of different codes to be able to batch-rename 120Gb of music for it to be readable by an iPod that will stay inside my car as a jukebox.  
Problem is, I want to get rid of top-level folder and use folders-files to get Artist - Album(and CD# IF needed) - tracks, just these three tags, really basic. It will help to see these infos right onto my car LCD screen.  
I joined a picture to hopefully help.  
Can somebody guide me regarding the right method to proceed please ?  
Thanks a LOT !

 ![](http://imageshack.com/a/img907/4530/29Up9m.jpg)

 ![](https://community.mp3tag.de/uploads/default/original/2X/f/f5f7802f0b8afd15f923fd531cb795af071ee589.jpg)

---

<div class="post-metadata">

### Author: ![futz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/e5b9ba/32.png) [@futz](https://community.mp3tag.de/u/futz)
#### Post date: [December 29, 2015, 7:08pm UTC](https://community.mp3tag.de/t/code-needed-for-renaming-please/17510/2 "2015-12-29T19:08:49Z")

</div>

In my above example (picture) I notice I forgot the ''CD'' so it would be more like:  
Alice Cooper/2001-Billion Dollar Babies/Cd1/01-Hello Hooray

---

<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: [December 29, 2015, 9:44pm UTC](https://community.mp3tag.de/t/code-needed-for-renaming-please/17510/3 "2015-12-29T21:44:36Z")

</div>

I would create an action of the type "Format value" for \_DIRECTORY  
and use as format string an absolute path, e.g.:  
c:\%albumartist%\%year%-%album%[\CD%discnumber%]  
I assume that the filename is already correct.
