# MOVE files from sub folder into main folder

**URL:** https://community.mp3tag.de/t/move-files-from-sub-folder-into-main-folder/69570
**Category:** Support
**Created:** [August 30, 2025, 4:20am UTC](https://community.mp3tag.de/t/move-files-from-sub-folder-into-main-folder/69570 "2025-08-30T04:20:48Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![chayes](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/e0b2c6/32.png) [@chayes](https://community.mp3tag.de/u/chayes)
#### Post date: [August 30, 2025, 4:20am UTC](https://community.mp3tag.de/t/move-files-from-sub-folder-into-main-folder/69570/1 "2025-08-30T04:20:48Z")

</div>

HI All

I wonder if someone could help with a little puzzle.

I have 55 folders in my directory. In each folder there is a sub-folder containing my files.

I'd like to find an automated way to MOVE the files from each sub-folder into the main folder for each. This would leave the sub-folder empty of course.

So

Directory -\> Main Folder -\> Folder containing files

would become

Directory -\> Main Folder now contains files - \> Folder now empty

Can someone suggest a way of accomplishing this?

Grateful for any advice. 🙂

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [August 30, 2025, 5:42am UTC](https://community.mp3tag.de/t/move-files-from-sub-folder-into-main-folder/69570/2 "2025-08-30T05:42:49Z")

</div>

Load all your files of the main folder. In File→Options→Directories the option “Subdirectories" has to be checked.

Take Convert Tag→Tag:

Field: `_DIRECTORY`  
Format string: `Full path to main folder`

You can also do that with an equivalent action of the type "Format Value".

Please note that you will run into problems if the file names are not unique.

> [@chayes](#):
>
> This would leave the sub-folder empty of course

With my suggestion the subfolders are deleted.

---

<div class="post-metadata">

### Author: ![chayes](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/e0b2c6/32.png) [@chayes](https://community.mp3tag.de/u/chayes)
#### Post date: [August 30, 2025, 7:48pm UTC](https://community.mp3tag.de/t/move-files-from-sub-folder-into-main-folder/69570/3 "2025-08-30T19:48:20Z")

</div>

Hi

Thanks for this. I tried various configurations, but haven't been able to get it working correctly. The files are ending up in all sorts of places, rather than in the folder above where they currently are. I've tried %foldername%, %filename%, %directory% to no avail…

🙂

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [August 30, 2025, 7:54pm UTC](https://community.mp3tag.de/t/move-files-from-sub-folder-into-main-folder/69570/4 "2025-08-30T19:54:38Z")

</div>

> [@chayes](#):
>
> I've tried %foldername%, %filename%, %directory% to no avail…

All these variables are not valid.  
What is the full path-name to the "main folder"? (i.e. D:\Mp3s\Mainfolder)  
Please show us a screenshot of the convert-window Tag-\> Tag.

---

<div class="post-metadata">

### Author: ![chayes](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/e0b2c6/32.png) [@chayes](https://community.mp3tag.de/u/chayes)
#### Post date: [August 30, 2025, 8:42pm UTC](https://community.mp3tag.de/t/move-files-from-sub-folder-into-main-folder/69570/5 "2025-08-30T20:42:50Z")

</div>

Hi

Thanks for getting back. 🙂

There are 55 folders in this directory :

F:\MP3 Cache\Downloading\Bach - Complete Cantatas

The 55 folders are named by volume like this , for example

F:\MP3 Cache\Downloading\Bach - Complete Cantatas\Bach - Complete Cantatas Volume 01

Within each one is a folder like this

F:\MP3 Cache\Downloading\Bach - Complete Cantatas\Bach - Complete Cantatas Volume 01\Bach - Complete Cantatas (1.1)

All the folders follow this pattern.

I'm trying to move the files in

Bach - Complete Cantatas (1.1)

to

Bach - Complete Cantatas Volume 01

and so on for each folder.

 ![MP3t100](https://community.mp3tag.de/uploads/default/original/3X/2/e/2e67aa2b9856889554e034141bd26db2d7943ed5.jpeg)

---

<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: [August 30, 2025, 9:13pm UTC](https://community.mp3tag.de/t/move-files-from-sub-folder-into-main-folder/69570/6 "2025-08-30T21:13:22Z")

</div>

> [@chayes](#):
>
> Sorry, I don't see how to insert a screenshot..

[Use screenshots to exemplify the issue](https://community.mp3tag.de/t/hints-for-asking-support-requests/56190#use-screenshots-to-exemplify-the-issue-2).

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [August 31, 2025, 7:01am UTC](https://community.mp3tag.de/t/move-files-from-sub-folder-into-main-folder/69570/7 "2025-08-31T07:01:39Z")

</div>

If I understand you correctly, you have 55 folders, each with 1 subfolder, and you want to move all the files from each subfolder to the folder above it. If possible, delete the empty subfolders after the move.

Try this format string:  
`F:\MP3 Cache\Downloading\Bach - Complete Cantatas\%_parent_directory%`

 ![image](https://community.mp3tag.de/uploads/default/original/3X/c/4/c41542a0d3adf449ff3399144ea4c32bf6722130.png)

This will rename all subfolders to the name of the folder above them, effectively moving the files.

PS:  
You can also simplify the format string a bit, independent of your specific path names, by generalizing it to the target "1 folder level higher".  
Format string: `..\%_parent_directory%`

 ![image](https://community.mp3tag.de/uploads/default/original/3X/6/1/6117531f7d64b73e11ff1e6cfeed7704ed88f5ce.png)

---

<div class="post-metadata">

### Author: ![chayes](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/e0b2c6/32.png) [@chayes](https://community.mp3tag.de/u/chayes)
#### Post date: [August 31, 2025, 1:48pm UTC](https://community.mp3tag.de/t/move-files-from-sub-folder-into-main-folder/69570/8 "2025-08-31T13:48:19Z")

</div>

Many Thanks , poster! That works perfectly and does the job exactly!

🙂

---

<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 30, 2025, 1:49pm UTC](https://community.mp3tag.de/t/move-files-from-sub-folder-into-main-folder/69570/9 "2025-09-30T13:49:05Z")

</div>

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