# Moving files based on tags

**URL:** https://community.mp3tag.de/t/moving-files-based-on-tags/9901
**Category:** Support
**Created:** [February 15, 2010, 2:35pm UTC](https://community.mp3tag.de/t/moving-files-based-on-tags/9901 "2010-02-15T14:35:29Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jim.sugarman](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/58f4c7/32.png) [@jim.sugarman](https://community.mp3tag.de/u/jim.sugarman)
#### Post date: [February 15, 2010, 2:35pm UTC](https://community.mp3tag.de/t/moving-files-based-on-tags/9901/1 "2010-02-15T14:35:29Z")

</div>

Does anyone have a script that will move files from one directory to another, and create a structure by Genre\Artist\Album ?

---

<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: [February 17, 2010, 11:19am UTC](https://community.mp3tag.de/t/moving-files-based-on-tags/9901/2 "2010-02-17T11:19:38Z")

</div>

if you have your mp3 tags filled with genre, artist and album then use an action of the type  
"format tag-field"  
on the field %\_filename%  
and enter as format string

%Genre%\%Artist%\%Album%

this will create the named file structure under the current working directory.  
If you modify "%Genre%\%Artist%\%Album%" to an absolute path on your drive like

\music\%Genre%\%Artist%\%Album%  
it will create the folders in a folder names music.

---

<div class="post-metadata">

### Author: ![jim.sugarman](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/58f4c7/32.png) [@jim.sugarman](https://community.mp3tag.de/u/jim.sugarman)
#### Post date: [February 17, 2010, 5:35pm UTC](https://community.mp3tag.de/t/moving-files-based-on-tags/9901/3 "2010-02-17T17:35:31Z")

</div>

> [@shuggie](#):
>
> Does anyone have a script that will move files from one directory to another, and create a structure by Genre\Artist\Album ?

Thanks that works. I had to add %\_filename\_ext% to keep the file name othewise I would get a duplicate file error, so my whole action is  
%\_filename%  
%genre%\%artist%\%album%\%\_filename\_ext%

I had been playing around and tried %\_Directory% which was moving more than the files I selected and giving all files the same directory of the file selected and ignoring their own tags.

Thanks again.

---

<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:22pm UTC](https://community.mp3tag.de/t/moving-files-based-on-tags/9901/4 "2026-02-09T12:22:10Z")

</div>


