MOVE files from sub folder into main folder

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. :slight_smile:

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.

With my suggestion the subfolders are deleted.

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…

:slight_smile:

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.

Hi

Thanks for getting back. :slight_smile:

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.

Use screenshots to exemplify the issue.

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%

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%

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

:slight_smile: