You got an example how to do it on a test tagfield as a preview, by applying the converter dialog "Tag-Tag".
To make it permanent in the disk folder system, then instead of tagfield TEST do apply the pseudo-tagfield _DIRECTORY.
It is sufficient to select only one file in the folder, all other files in the folder are automatically moved as well.
So after some playing around with this I have been able to achieve the folder structure that I wanted. The example below is for Roman Numeral compilations hence the \D+ and achieves the desired result...
Format value "TITLESORT": [$regexp(%album%,'^.* (Part \D+).*$','$1')]
Format value "ALBUMSORT": $cutRight(%album%,$len(%titlesort%))
Format value "_FILENAME": F:\Backup Processing\%albumartist%\%albumsort%\%titlesort% %mediatype% %year%\%_filename_ext%
I receive an error if I try simply formating the existing "_DIRECTORY" so I use a "_FILENAME" command using a proper windows filepath and the formatted values. Only issue remains is that I am unable to get the cover art (folder/file) to move with it to the new directory. Now most of my files have the coverart embedded however there are other files such as insert images and back cover and disc photos in some of the files so I would like to have these files/folder go with it to the new directory. Any suggestions would be appreciated.
You can take and move all files in the directory folder, when you edit the pseudo tagfield _DIRECTORY.
Try to "format value" the pseudo tag field _DIRECTORY instead of the pseudo tag field _FILENAME.
This will cause a MOVE of the complete folder.
When you load the track files, respectively the parent folder, respectively the root folder, into Mp3tag, you should have a closer look to the fact where is the Mp3tag workfolder situated (should be read in Mp3tag window title).
In relation to this workfolder you can assemble a relative folderpath which points to the place where you want to create the new subfolder of your wish.
As an alternative way you can use an absolute path starting at the drive root, carrying the complete folderpath which points to the new folder.
See also ... /t/16792/1 Ordner erstellen und Dateien verschieben
This is an OS message, right?
So either you have not got the sufficient access rights or the total filename (with all the path components) is too long or you have illegal characters in it.
Note: When formatting the pseudo tag-field _DIRECTORY, then only the target folder needs to defined, therefore apply a formatstring, which has no filename component.
Hmm, you offer a relative path, starting from which drive:\folder?
Format the pseudo-tagfield _DIRECTORY ...
try out a formatstring like the following, ...
replace 'drive:\path' with your environment, ...
make sure to have all parts filled with fitting text, ...
Have hit a snag with a variant I have been able to configure this script for "Festivals, Compilations,Volumes (numbered and Roman Numerals) however am stuck with one type....
The one that is causing me issue now is one that is an number followed by a " | " than a number?
For example File 13 | 3 now I can get it to create a folder similar to what I want but it removes the | 3 and cuts it down to File 13. Which would be fine if there isn't any other versions...but there could be a File 13 | 4 which than would create a file already exists error...?
Suggestions?
I have tried using [$regexp(%album%,'^.* (File \D+).$','$1')] however this does nothing due to the number 1st and as indicated if I use the [$regexp(%album%,'^. (File \d+).*$','$1')] it cut out the " | 3" which I would ultimately like to keep.
The pipe symbol '|' is a reserved character in the file system for the purpose of pipelining, therefore it is not valid to be used within a filename.
You should replace the pipe symbol with an allowed character, e.g. '~', ...
or apply the function $validate.
Thank you for the insight however if I replace the pipe symbol with another one, would I not still have the same existing problem but with a different character in place as it would still format as File 13 and omit the remainder which would be the new symbol and the following number. I also tried playing around with the $validate function and it either generates a folder for year only or not at all..perhaps it is my positioning of the term that is causing the issue but I am unable to get this to play nicely with the others...
That sounds like a conjunctivist question?
What does happen in reality, when you ommit restricted characters from the filepath?
If you create a filename or a foldername, then the rules of the underlying file system defines the creation of names, and therefore there are characters, which are allowed, and some characters, which are forbidden to be applied within names.
The function $validate(filename, to) replaces each invalid character of the set [/?*"<>|:] with a valid character of your choice.
_FILENAME <== $validate(%filename%,'')
... replaces all invalid characters with an underscore letter.
_FILENAME <== $validate(%_filename%,'~')
... replaces all invalid characters with a tilde letter.
DIRECTORY <== $validate('C:\yourpath'%artist%''%album%''%year%),'')
... replaces all invalid characters with an underscore letter.
To avoid further misunderstandings please show us a real world example from your doing.