# Export URL field and create a file.url

**URL:** <https://community.mp3tag.de/t/export-url-field-and-create-a-file-url/58233>\
**Category:** Support\
**Created:** [August 18, 2022, 9:57pm UTC](https://community.mp3tag.de/t/export-url-field-and-create-a-file-url/58233 "2022-08-18T21:57:35Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![DJ-AS](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dj-as/32/12083_2.png) [@DJ-AS](https://community.mp3tag.de/u/DJ-AS)\
**Post date:** [August 18, 2022, 9:57pm UTC](https://community.mp3tag.de/t/export-url-field-and-create-a-file-url/58233/1 "2022-08-18T21:57:35Z")

</div>

Hi! I'll make with your help and action to export the field URL to a file.url.  
For example:  
Artist  
------- year - album  
------- year - album  
------- year - album  
------- year - album

When drop the Artist folder in MP3Tag and run the action, just export a file.url into a first folder but I need a file.url for each folder and/or subfolder.  
This is the script I use:

$filename(url,ansi)'[InternetShortcut]'  
URL=%URL%

Any suggestion?

---

<div class="post-metadata">

**Author:** ![ryerman](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ryerman/32/5285_2.png) [@ryerman](https://community.mp3tag.de/u/ryerman)\
**Post date:** [August 18, 2022, 10:45pm UTC](https://community.mp3tag.de/t/export-url-field-and-create-a-file-url/58233/2 "2022-08-18T22:45:15Z")

</div>

Try this:

```auto
$filename(%_folderpath%%_directory%.url,ansi)'[InternetShortcut]'
URL=%URL%

```

With check-mark for "One file per directory" when exporting.

---

<div class="post-metadata">

**Author:** ![DJ-AS](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dj-as/32/12083_2.png) [@DJ-AS](https://community.mp3tag.de/u/DJ-AS)\
**Post date:** [August 19, 2022, 3:44pm UTC](https://community.mp3tag.de/t/export-url-field-and-create-a-file-url/58233/3 "2022-08-19T15:44:46Z")

</div>

Doens't work.  
If I drop the Artist folder, the file is generated in that folder and nothing more  
Artist  
------- year - album  
------- year - album  
------- year - album  
------- year - album  
**file.url**  
**file.url**  
**file.url**  
**file.url**

What I need:  
Artist  
------- year - album  
**file.url**  
------- year - album  
**file.url**  
------- year - album  
**file.url**  
------- year - album  
**file.url**

---

<div class="post-metadata">

**Author:** ![ryerman](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ryerman/32/5285_2.png) [@ryerman](https://community.mp3tag.de/u/ryerman)\
**Post date:** [August 19, 2022, 6:09pm UTC](https://community.mp3tag.de/t/export-url-field-and-create-a-file-url/58233/4 "2022-08-19T18:09:25Z")

</div>

I don't understand your folder structure.  
Is "------- year - album" a sub-folder of "Album"?  
How can there be multiple files (or sub-folders) with the same name in the folder "Album"?

Post a screenshot of your actual folder structure to make it clear.

The Export function does not create 1 file for every selected file.  
That can be done by using a Tool.

---

<div class="post-metadata">

**Author:** ![DJ-AS](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dj-as/32/12083_2.png) [@DJ-AS](https://community.mp3tag.de/u/DJ-AS)\
**Post date:** [August 19, 2022, 7:05pm UTC](https://community.mp3tag.de/t/export-url-field-and-create-a-file-url/58233/5 "2022-08-19T19:05:21Z")

</div>

I'm sorry... that's is and example.  
This is a real structure:  
[![](https://community.mp3tag.de/uploads/default/original/2X/8/8b122a8765668d837ff63f242f6d1810c6fef758.jpeg)](https://postimg.cc/2LbsQB5D)

So the main folder is "a-ha" and every subfolder, is an album, maxi, single, compilation, etc...  
I need export 1 file.url per subfolder.  
With your help now export 1 file.url per directory but the files appears in the main directory not in each folder.  
[![](https://community.mp3tag.de/uploads/default/original/2X/8/8a3728b78b200b14f67d69632ce044829b614012.jpeg)](https://postimg.cc/JyCjMwXc)

[![](https://community.mp3tag.de/uploads/default/original/2X/1/16ad0f1abb8cc64edcd765a897e613aa5ae6e8f2.jpeg)](https://postimg.cc/LnYTSF5h)

---

<div class="post-metadata">

**Author:** ![ryerman](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ryerman/32/5285_2.png) [@ryerman](https://community.mp3tag.de/u/ryerman)\
**Post date:** [August 19, 2022, 11:14pm UTC](https://community.mp3tag.de/t/export-url-field-and-create-a-file-url/58233/6 "2022-08-19T23:14:20Z")

</div>

Sorry, but I cannot reproduce your results.  
My previous solution creates 1 file in each subfolder.  
Maybe you should show the contents of one of the album sub-folders.  
And attach the MTE file, found here: %APPDATA%\Mp3tag\export.

 ![export message](https://community.mp3tag.de/uploads/default/original/2X/5/5ab951499018c791c56153b1fb2fab5f98a9ad10.jpeg)

---

<div class="post-metadata">

**Author:** ![DJ-AS](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dj-as/32/12083_2.png) [@DJ-AS](https://community.mp3tag.de/u/DJ-AS)\
**Post date:** [August 19, 2022, 11:27pm UTC](https://community.mp3tag.de/t/export-url-field-and-create-a-file-url/58233/7 "2022-08-19T23:27:16Z")

</div>

All my music folders have the same format:  
[![](https://community.mp3tag.de/uploads/default/original/2X/b/b6fbddec531ba8398ace021972f5c4cf3dc0586e.jpeg)](https://postimg.cc/Bthz27ps)

[URL.mte](https://community.mp3tag.de/uploads/short-url/u7LUEpwgoEMhKO2afR47ILLmRlX.mte) (76 Bytes)

Note: I use Windows 11. Let me try in another win version...

---

<div class="post-metadata">

**Author:** ![DJ-AS](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dj-as/32/12083_2.png) [@DJ-AS](https://community.mp3tag.de/u/DJ-AS)\
**Post date:** [August 19, 2022, 11:48pm UTC](https://community.mp3tag.de/t/export-url-field-and-create-a-file-url/58233/8 "2022-08-19T23:48:28Z")

</div>

I got it!!!  
[![](https://community.mp3tag.de/uploads/default/original/2X/e/e74ce731ff36d52b70750acfe0e4f7e074fcfeca.jpeg)](https://postimg.cc/RWf9sxpw)

Now work's perfectly!!!  
Thank so much ryerman!!!

---

<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:** [September 18, 2022, 11:49pm UTC](https://community.mp3tag.de/t/export-url-field-and-create-a-file-url/58233/9 "2022-09-18T23:49:12Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
