# Distribute files from Folder with lots of singles

**URL:** <https://community.mp3tag.de/t/distribute-files-from-folder-with-lots-of-singles/62448>\
**Category:** Support\
**Created:** [October 17, 2023, 9:34pm UTC](https://community.mp3tag.de/t/distribute-files-from-folder-with-lots-of-singles/62448 "2023-10-17T21:34:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sheepdisease](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@sheepdisease](https://community.mp3tag.de/u/sheepdisease)\
**Post date:** [October 17, 2023, 9:34pm UTC](https://community.mp3tag.de/t/distribute-files-from-folder-with-lots-of-singles/62448/1 "2023-10-17T21:34:09Z")

</div>

Hey, I touched on this in a previous post and I think ohrenkino said that if the number of folders is less than the number required, when using actions everything will be moved to one folder.

So let's say we have one folder full of tracks by different artists.

We want to move each file into a folder that corresponds with the album (single name).

I want to select every file within the directory `A:\Music\Record\`.

Small sample

 ![image](https://community.mp3tag.de/uploads/default/original/2X/3/32e864e500f7a24350f615f6913ed92d6aa308db.png)

Format value:  
\_DIRECTORY  
Format string:  
`A:\Music\Record\%artist%\%album%`

If you are anything like me, you might imagine this would move everything correctly to the corresponding artist and album folders respectively. Except, it grabs every file in that directory and tries to place them all in the first album of the first artist in the selection.

Now instead of being in A:\Music\Record, it has been moved to "A:\Music\Record\Corvyx\6 Inch (feat. Nicole Medoro)".

There has to be a workaround for this?

I think I need to rename the files but I don't want them getting stuck inside a subfolder. So even if everything was in the folder "Corvyx\6 Inch (feat. Nicole Medoro)" I still want files to be able to go into the respective folder within "A:\Music\Record\Artist\Album".

---

<div class="post-metadata">

**Author:** ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)\
**Post date:** [October 18, 2023, 12:04am UTC](https://community.mp3tag.de/t/distribute-files-from-folder-with-lots-of-singles/62448/2 "2023-10-18T00:04:57Z")

</div>

Have you tried a more brute force approach like this?

Format value:  
\_DIRECTORY  
Format string:  
`A:\Music\Record\`

A filter to get only the files you want moved this way is highly recommended.

---

<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:** [October 18, 2023, 5:45am UTC](https://community.mp3tag.de/t/distribute-files-from-folder-with-lots-of-singles/62448/3 "2023-10-18T05:45:26Z")

</div>

> [@sheepdisease](#):
>
> Hey, I touched on this in a previous post and I think ohrenko said that if the number of folders is less than the number required, when using actions everything will be moved to one folder.

If you quote me, then quote me correctly:

> [@Problem with folders containing tracks from multiple discs](https://community.mp3tag.de/t/problem-with-folders-containing-tracks-from-multiple-discs/62294/2):
>
> If the number of the source folders is smaller than the number of target folders then you have to format value the \_FILENAME as each file is moved individually to the individual new location. If you rename the \_DIRECTORY, then all the files in that folder are moved to the new location.

So if you want to distribute files from 1 folder to several folders, then use an

- action of the type "Format value" for \_FILENAME or
- Convert\>Tag-Tag for \_FILENAME or
- Convert\>Tag-Filename.

The correct string would not be:

> [@sheepdisease](#):
>
> Format string:  
> `A:\Music\Record\%artist%\%album%`

but  
Format string: `A:\Music\Record\%artist%\%album%\%_filename%`

---

<div class="post-metadata">

**Author:** ![sheepdisease](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@sheepdisease](https://community.mp3tag.de/u/sheepdisease)\
**Post date:** [October 18, 2023, 7:25am UTC](https://community.mp3tag.de/t/distribute-files-from-folder-with-lots-of-singles/62448/4 "2023-10-18T07:25:26Z")

</div>

> [@ohrenkino](#):
>
> A:\Music\Record%artist%%album%%\_filename%

Thank you 🙂

---

<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:** [November 17, 2023, 7:26am UTC](https://community.mp3tag.de/t/distribute-files-from-folder-with-lots-of-singles/62448/5 "2023-11-17T07:26:24Z")

</div>

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