MP3Tag Rename Script

So I don’t forget it, and lose it when reimaging my machine, I’m posting my mp3tag file rename script. It takes the audio files that I have tagged, prefixes with a padded track number, formats as 001 – album – title.ext and shortens the name if it starts to get too long and nears the windows 256 file/path character length limitations.

$num(%track%,3) – $validate($replace(%album% – $iflonger(%_folderpath%nnn – %album% – %title%.%_extension%,256,$left(%title%,$sub(230,$len(%_folderpath%nnn – %album% – ))),%title%),.,-),-)

Permalink