# export files script

**URL:** https://community.mp3tag.de/t/export-files-script/7342
**Category:** Support
**Created:** [October 17, 2008, 5:14am UTC](https://community.mp3tag.de/t/export-files-script/7342 "2008-10-17T05:14:37Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![rtomakov](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/54ee81/32.png) [@rtomakov](https://community.mp3tag.de/u/rtomakov)
#### Post date: [October 17, 2008, 5:14am UTC](https://community.mp3tag.de/t/export-files-script/7342/1 "2008-10-17T05:14:37Z")

</div>

Is it possible to make a script that will export all files in (mp3tag) loaded directory to another one with folder configuration like: Artist\Album?  
So, this script should copy (or move) all mp3 files from loaded folder to Artist\Album folder (and make this folders if nessesary) according to every mp3 file tag from curent (mp3tag loaded) directory.

I have tried this by writing external .bat script, but it doesn´t work (mp3tag does not pass \_folderpath, artist & album tag to cmd).

In fact, there is great opensource program that is doing this very simply and fast, called Yamo (CodePorject Yamo), but I would like to make internal script could be used directly from mp3tag.

Is it possible?

(forgive me, I am newbie)

---

<div class="post-metadata">

### Author: ![Stevest](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/a698b9/32.png) [@Stevest](https://community.mp3tag.de/u/Stevest)
#### Post date: [October 17, 2008, 7:55am UTC](https://community.mp3tag.de/t/export-files-script/7342/2 "2008-10-17T07:55:45Z")

</div>

This is an _action_ not an _export_. Export doesn't move files, just export information about files (like fields in the tag, bitrate, length etc.) to a (generally) text-based output file (.txt, .bat, .xml, .csv etc.)

> [@](#):
>
> Is it possible?

Yes, it is.

**Action:** Format value  
**Field:** \_FILENAME  
**Format string:** C:\%artist%\%album%\%\_filename\_ext% \<-- for example

--or--

**Action:** Format value  
**Field:** \_DIRECTORY  
**Format string:** C:\%artist%\%album% \<-- for example

In the field _Format string_ you can use absolute or relative path using any of the [placeholders](https://docs.mp3tag.de/format) in MP3Tag, and MP3Tag will create the non-existing folders (folder structure), and move the files to them (even if the destination is in another drive). The first version will move only the audio files loaded and selected in MP3Tag, with the second version you can move _everything_ in your folder (for example cover photos).

---

<div class="post-metadata">

### Author: ![rtomakov](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/54ee81/32.png) [@rtomakov](https://community.mp3tag.de/u/rtomakov)
#### Post date: [October 17, 2008, 8:03am UTC](https://community.mp3tag.de/t/export-files-script/7342/3 "2008-10-17T08:03:29Z")

</div>

> [@Stevest](#):
>
> This is an _action_ not an _export_. Export doesn't move files, just export information about files (like fields in the tag, bitrate, length etc.) to a (generally) text-based output file (.txt, .bat, .xml, .csv etc.)Yes, it is.
> 
> **Action:** Format value  
> **Field:** \_FILENAME  
> **Format string:** C:\%artist%\%album%\%\_filename\_ext% \<-- for example
> 
> --or--
> 
> **Action:** Format value  
> **Field:** \_DIRECTORY  
> **Format string:** C:\%artist%\%album% \<-- for example
> 
> In the field _Format string_ you can use absolute or relative path using any of the [placeholders](https://docs.mp3tag.de/format) in MP3Tag, and MP3Tag will create the non-existing folders (folder structure), and move the files to them (even if the destination is in another drive). The first version will move only the audio files loaded and selected in MP3Tag, with the second version you can move _everything_ in your folder (for example cover photos).

Works man! Thanks!  
I did it with **format value \_FILENAME!** (tried with \_DIRECTORY but it copies ALL content of dir, not just selected track=

---

<div class="post-metadata">

### Author: ![Moonbase](https://community.mp3tag.de/user_avatar/community.mp3tag.de/moonbase/32/207_2.png) [@Moonbase](https://community.mp3tag.de/u/Moonbase)
#### Post date: [October 17, 2008, 11:34am UTC](https://community.mp3tag.de/t/export-files-script/7342/4 "2008-10-17T11:34:42Z")

</div>

Thanks for the good explanation, Stevest.

This discussion opens a lot of new thoughts for me: Would it somehow also be possible to _copy_ instead of moving?

I think of someone who wants to copy over part of his collection to an external (USB/FireWire/eSATA) disc, for backup purposes or just to take part of his collection with him.

---

<div class="post-metadata">

### Author: ![mAirListUser](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/65b543/32.png) [@mAirListUser](https://community.mp3tag.de/u/mAirListUser)
#### Post date: [October 18, 2008, 9:00am UTC](https://community.mp3tag.de/t/export-files-script/7342/5 "2008-10-18T09:00:46Z")

</div>

> [@Moonbase](#):
>
> I think of someone who wants to copy over part of his collection to an external (USB/FireWire/eSATA) disc, for backup purposes or just to take part of his collection with him.

There are 2 icons on the MP3Tag screen for this: Copy and Move.. When I want to copy (say, XMAS songs) to another location, I filter via Genre and type XMAS into the box, select all files then click the "Copy files" button and pick the folder...

You may prefer a more automated approach but that's how I do it 😉

---

<div class="post-metadata">

### Author: ![Moonbase](https://community.mp3tag.de/user_avatar/community.mp3tag.de/moonbase/32/207_2.png) [@Moonbase](https://community.mp3tag.de/u/Moonbase)
#### Post date: [October 18, 2008, 10:14am UTC](https://community.mp3tag.de/t/export-files-script/7342/6 "2008-10-18T10:14:53Z")

</div>

> [@mAirListUser](#):
>
> You may prefer a more automated approach but that's how I do it 😉

Hee, hee … sometimes one doesn’t see the wood for the trees 😃

Then again, I needed to come up with a different folder structure on the target, so I eventually came up with an Export into a good, old batch file … Would be nicer to handle all this internally like the »move« stuff, but alas.

---

<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:21pm UTC](https://community.mp3tag.de/t/export-files-script/7342/7 "2026-02-09T12:21:09Z")

</div>


