help with converting tag>filename


#1

Hello. I'm currently using Mp3tag to convert my filenames to something uniform (I like them all to be in the format of "artist name - 01. song name".

My tracknumbers do NOT have leading 0's in the %track% field, and I'd like to keep it that way, but when i convert, I want them to have the leading 0's. I'm currently using this:

$validate($lower(%artist%) - %track%. $lower(%title%),_)

How could I make it add a leading 0 If it's not a 2 digit number? Any help would be great -- thanks.


#2

$num(%track%,2)

Please read the help file and / or use the search feature next time. :slight_smile:


#3

thanks