# Exporting subdirectories and paths in any format!

**URL:** <https://community.mp3tag.de/t/exporting-subdirectories-and-paths-in-any-format/59360>\
**Category:** Support\
**Created:** [December 11, 2022, 10:22am UTC](https://community.mp3tag.de/t/exporting-subdirectories-and-paths-in-any-format/59360 "2022-12-11T10:22:44Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![zach](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/51bf81/32.png) [@zach](https://community.mp3tag.de/u/zach)\
**Post date:** [December 11, 2022, 10:22am UTC](https://community.mp3tag.de/t/exporting-subdirectories-and-paths-in-any-format/59360/1 "2022-12-11T10:22:44Z")

</div>

Hello  
The only i wish to know in on how can i export sorted :  
Filename -Path- Title - Artist -Album name  
it does not matter if the path is in the 2nd column or 4th ut is imporatnt to be inlcuded in the resulted table . There is a big chaos otherwise  
The subdcirectories are not included !!! How can thy be added ?

---

<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 11, 2022, 10:29am UTC](https://community.mp3tag.de/t/exporting-subdirectories-and-paths-in-any-format/59360/2 "2022-12-11T10:29:22Z")

</div>

> [@zach](#):
>
> The subdcirectories are not included !!! How can thy be added ?

Usually, the \_DRIECTORY is part of \_PATH. But, naturally, you can include \_DRECTORY.  
Which result do you expect that is no

> [@zach](#):
>
> big chaos otherwise

What have you tried so far?

---

<div class="post-metadata">

**Author:** ![zach](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/51bf81/32.png) [@zach](https://community.mp3tag.de/u/zach)\
**Post date:** [December 11, 2022, 10:53am UTC](https://community.mp3tag.de/t/exporting-subdirectories-and-paths-in-any-format/59360/3 "2022-12-11T10:53:45Z")

</div>

for the moment I only did the basic by exporting in the standard witout adding any code anywhere  
As ou can see there is no directory

 ![grafik](https://community.mp3tag.de/uploads/default/original/2X/c/c8bb39e420d4795de4690de6d51beae1ee493e29.jpeg)

---

<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 11, 2022, 11:03am UTC](https://community.mp3tag.de/t/exporting-subdirectories-and-paths-in-any-format/59360/4 "2022-12-11T11:03:27Z")

</div>

Right-click on a column header.  
Select Columns ...  
In the following dialogue  
 ![grafik](https://community.mp3tag.de/uploads/default/original/2X/0/0115bdebb16aac709281245be179cfc3e08ca1e8.png)  
either check if there is already an entry for \_PATH and activate that one in the left list or  
create a new column with the "New" button.  
Fill in the fields as shown in the screendump:  
Name: Path  
Value: %\_path%  
(Field: stays empty)  
If you only want to see the \_DRIECTORY and not the full \_PATH, use %\_directory% instead of %\_path%

See whether you like the position of the new field and if not, move it with the buttons for up or down to the preferred position.

Click OK to save the changes.  
You may now sort by this column

---

<div class="post-metadata">

**Author:** ![zach](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/51bf81/32.png) [@zach](https://community.mp3tag.de/u/zach)\
**Post date:** [December 11, 2022, 11:10am UTC](https://community.mp3tag.de/t/exporting-subdirectories-and-paths-in-any-format/59360/5 "2022-12-11T11:10:52Z")

</div>

the path is showin in the prorgram bu not exported

 ![grafik](https://community.mp3tag.de/uploads/default/original/2X/9/960b99a5e1bad3c5785d9c0e9c8d59a831f696a4.jpeg)

---

<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 11, 2022, 11:12am UTC](https://community.mp3tag.de/t/exporting-subdirectories-and-paths-in-any-format/59360/6 "2022-12-11T11:12:46Z")

</div>

Then please show me the export script with which you want to export the path.  
(And please upload pictures to the post instead of to an external hoster)

---

<div class="post-metadata">

**Author:** ![zach](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/51bf81/32.png) [@zach](https://community.mp3tag.de/u/zach)\
**Post date:** [December 11, 2022, 11:19am UTC](https://community.mp3tag.de/t/exporting-subdirectories-and-paths-in-any-format/59360/7 "2022-12-11T11:19:37Z")

</div>

∩╗┐$filename(html,utf-8)\<?xml version="1.0" encoding="utf-8"?\>

 Mp3tag - File Overview 
# Mp3tag - File Overview

%\_date%

$loop(%\_filename\_ext%)

  
\<td$if($odd(%\_counter%), class="odd",)\>$replace(%title%,&,&)  
\<td$if($odd(%\_counter%), class="odd",)\>$replace(%artist%,&,&)  
\<td$if($odd(%\_counter%), class="odd",)\>$replace(%album%,&,&)  
\<td$if($odd(%\_counter%), class="odd",)\>$replace(%track%,&,&)  
\<td$if($odd(%\_counter%), class="odd",)\>$replace(%year%,&,&)  
\<td$if($odd(%\_counter%), class="odd",)\>$replace(%genre%,&,&)  
\<td$if($odd(%\_counter%), class="odd",)\>$replace(%\_filename\_ext%,&,&)  
  
$loopend()

```
</table>
<p>built on %_date% with %_app% - the universal Tag Editor <a href="http://www.mp3tag.de/en/" title="Mp3tag Website">www.mp3tag.de</a></p>

```

| Title | Artist | Album | Track | Year | Genre | Filename |
| --- | --- | --- | --- | --- | --- | --- |
|
| |

---

<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 11, 2022, 11:23am UTC](https://community.mp3tag.de/t/exporting-subdirectories-and-paths-in-any-format/59360/8 "2022-12-11T11:23:57Z")

</div>

You could replace

> [@zach](#):
>
> $loop(%\_filename\_ext%)

with  
`$loop(%_path%)`

---

<div class="post-metadata">

**Author:** ![zach](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/51bf81/32.png) [@zach](https://community.mp3tag.de/u/zach)\
**Post date:** [December 11, 2022, 11:24am UTC](https://community.mp3tag.de/t/exporting-subdirectories-and-paths-in-any-format/59360/9 "2022-12-11T11:24:57Z")

</div>

```
	<tr>
		<th class="title">Title</th>
		<th class="title">Artist</th>
		<th class="title">Album</th>
		<th class="title">Track</th>
		<th class="title">Year</th>
		<th class="title">Genre</th>
		<th class="title">Filename</th>

```

$loop(%\_filename\_ext%)

```
		<td$if($odd(%_counter%), class="odd",)>$replace(%title%,&,&amp;)</td>
		<td$if($odd(%_counter%), class="odd",)>$replace(%artist%,&,&amp;)</td>
		<td$if($odd(%_counter%), class="odd",)>$replace(%album%,&,&amp;)</td>
		<td$if($odd(%_counter%), class="odd",)>$replace(%track%,&,&amp;)</td>
		<td$if($odd(%_counter%), class="odd",)>$replace(%year%,&,&amp;)</td>
		<td$if($odd(%_counter%), class="odd",)>$replace(%genre%,&,&amp;)</td>
		<td$if($odd(%_counter%), class="odd",)>$replace(%_filename_ext%,&,&amp;)</td>
	</tr>

```

$loopend()

```
<built on %_date% with %_app% - the universal Tag Editor <a href="http://www.mp3tag.de/en/" title="Mp3tag Website">www.mp3tag.de</a></p>

```

---

<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 11, 2022, 11:28am UTC](https://community.mp3tag.de/t/exporting-subdirectories-and-paths-in-any-format/59360/10 "2022-12-11T11:28:50Z")

</div>

... and insert  
`<th class="title">Path</th>`  
before  
`<th class="title">Title</th>`  
and also insert  
`<td$if($odd(%_counter%), class="odd",)>$replace(%_path%,&,&amp;)</td>`  
before  
`<td$if($odd(%_counter%), class="odd",)>$replace(%title%,&,&amp;)</td>`

---

<div class="post-metadata">

**Author:** ![zach](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/51bf81/32.png) [@zach](https://community.mp3tag.de/u/zach)\
**Post date:** [December 11, 2022, 11:39am UTC](https://community.mp3tag.de/t/exporting-subdirectories-and-paths-in-any-format/59360/11 "2022-12-11T11:39:41Z")

</div>

![grafik](https://community.mp3tag.de/uploads/default/original/2X/9/960b99a5e1bad3c5785d9c0e9c8d59a831f696a4.jpeg)

 ![grafik](https://community.mp3tag.de/uploads/default/original/2X/8/8087dea5d856befd049f6db1b35fbebf2bb7b4be.jpeg)

as you can see the program inisiss even if the config has been updated!!!! (in the export directory )  
version 3.17

---

<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:** [December 11, 2022, 11:44am UTC](https://community.mp3tag.de/t/exporting-subdirectories-and-paths-in-any-format/59360/12 "2022-12-11T11:44:56Z")

</div>

![image](https://community.mp3tag.de/uploads/default/original/2X/b/b20a3bc41d0c871f8cc53ff2a17fafc65a9f644a.jpeg)

---

<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 11, 2022, 11:45am UTC](https://community.mp3tag.de/t/exporting-subdirectories-and-paths-in-any-format/59360/13 "2022-12-11T11:45:13Z")

</div>

I can see `%_path%%` where it should be `%_path%`.

I don't quite understand what

> [@zach](#):
>
> inisiss

means.  
And there is no need to yell at me with

> [@zach](#):
>
> !!!!

What did you expect the output should look like?  
I expected an extra column with the contents of \_PATH, being sorted by \_PATH

---

<div class="post-metadata">

**Author:** ![zach](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/51bf81/32.png) [@zach](https://community.mp3tag.de/u/zach)\
**Post date:** [December 11, 2022, 11:46am UTC](https://community.mp3tag.de/t/exporting-subdirectories-and-paths-in-any-format/59360/14 "2022-12-11T11:46:11Z")

</div>

![grafik](https://community.mp3tag.de/uploads/default/original/2X/b/ba75655cb0b45d1fe72b96ef8bf7ca3eea4718f7.jpeg)

as youc an see the problem insists . this is my more recent screenshot with a program restart after any chnge has been made in the export .mse file

---

<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 11, 2022, 11:49am UTC](https://community.mp3tag.de/t/exporting-subdirectories-and-paths-in-any-format/59360/15 "2022-12-11T11:49:12Z")

</div>

Please use the forum upload function for you screenshots. There is absolutely no need to use an external hoster.

Also, if the script does not work as expected, I would like to see the whole script as that is responsible for the output.  
And the script should be issued as text and not as a picture as that would make testing much easier.

---

<div class="post-metadata">

**Author:** ![zach](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/51bf81/32.png) [@zach](https://community.mp3tag.de/u/zach)\
**Post date:** [December 11, 2022, 11:53am UTC](https://community.mp3tag.de/t/exporting-subdirectories-and-paths-in-any-format/59360/16 "2022-12-11T11:53:48Z")

</div>

> **[html\_standard.mte | Powered by Box](https://app.box.com/s/e6x69s208urt05a29e0qfyay9bypnjkk)**

here is the code file

---

<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 11, 2022, 11:54am UTC](https://community.mp3tag.de/t/exporting-subdirectories-and-paths-in-any-format/59360/17 "2022-12-11T11:54:38Z")

</div>

Please use the upload function in the forum.

---

<div class="post-metadata">

**Author:** ![zach](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/51bf81/32.png) [@zach](https://community.mp3tag.de/u/zach)\
**Post date:** [December 11, 2022, 11:58am UTC](https://community.mp3tag.de/t/exporting-subdirectories-and-paths-in-any-format/59360/18 "2022-12-11T11:58:07Z")

</div>

![Στιγμιότυπο οθόνης 2022-12-11 135013](https://community.mp3tag.de/uploads/default/original/2X/3/38f7f75b5f6b415d27e4bbc116d7230063dfa55a.jpeg)  
[html\_standard.mte](https://community.mp3tag.de/uploads/short-url/nBntWtNqBwXOhYUFkOIhyfRVmCu.mte) (2.0 KB)

---

<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 11, 2022, 12:00pm UTC](https://community.mp3tag.de/t/exporting-subdirectories-and-paths-in-any-format/59360/19 "2022-12-11T12:00:14Z")

</div>

If that is the updated mte-file then I do not see any updates whatsoever.  
I still see %\_filename\_ext% as loop variable and I do not see any of the suggested lines that need to be added for more output.  
Please adapt the script and try again.

---

<div class="post-metadata">

**Author:** ![zach](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/51bf81/32.png) [@zach](https://community.mp3tag.de/u/zach)\
**Post date:** [December 11, 2022, 12:09pm UTC](https://community.mp3tag.de/t/exporting-subdirectories-and-paths-in-any-format/59360/20 "2022-12-11T12:09:37Z")

</div>

[html\_standard.mte](https://community.mp3tag.de/uploads/short-url/nBntWtNqBwXOhYUFkOIhyfRVmCu.mte) (2.0 KB)  
I cannot understand I applied many times the updates loaded this file so amny times in my test editor and still showing different result in you?

[Next page](https://community.mp3tag.de/t/exporting-subdirectories-and-paths-in-any-format/59360.md?page=2)
