How to rename a batch of files like "01 Hello" to "01 - Hello"?


#1

Hello guys!

The line of the topic explains the question for it self.

How can I rename a batch of files whose names like "01 Hello" to "01 - Hello"?

Thanks in advance.

Marcelo Neri


#2

Use the function Convert>Tag-Filename
Format string: $num(%track%,2) - %title%
(provided the tag fields are filled)
Otherwise you should fill the tag fields first.
E.g.
function Convert>Filename-Tag
Pattern: %track% %title%

There was a similar problem some time back:


#3

ohrenkino you are always helping!
Thanks a lot man!

I followed the steps, but at the end, the outcome was "01 - 01 Hello" .

How to fix to "01 - Hello"?

By the way, all my actions were saved on a damaged hard drive. All my questions and solutions about mp3tag were there. Too bad!


#4

To clean up the filename:
for filenames with 2 numbers:

Convert>Tag-Tag for _FILENAME
Format string: $regexp(%_filename%,(\d+ - )\d+ (.*),$1$2)

for filenames with just 1 number:
Convert>Tag-Tag for _FILENAME
Format string: $regexp(%_filename%,(\d+ )(.*),$1- $2)

But that looks to me as though the TITLE also has a number in it. For that you can use the almost the same converter like for 1 number only this time with TITLE everywhere there was _FILENAME

The preview in the converter should show you if everything is OK.


#5

In my version there's no "_FILENAME" option. ]

Look:
image here

I'll do it manually using what you allready told me.

Thanks a lot again!


#6

That is in my so, too.
You really have to type it in:
_FILENAME


#7

Oh Yeah!
Now it works!

ohrenkino, you are the one man!

A thousand thanks,

Marcelo Neri