Post by CorMy question is: I have a great amount of mp3 files, that are named
the wrong way round, i.e.
Frankie - Sister Sledge.
But the bulk of my other mp3 files (about 155000) is named
Sister Sledge - Frankie.
In other words: Artist first, space, dash - filename.mp3.
Is there a way to turn these files around automatically using some
sort of DOS-commando?
I don't see myself renaming appr. 2500 mp3's by hand....
What I would do is this:
Open a command prompt and navigate to the directory containing your mp3
files and issue the command:
dir *.mp3 /b > dir.txt
That will create a text file containing a list of the names of all the
mp3 files.
Now, if you have excel (or any spreadsheet program) do this: Open the
file "dir.txt" and when asked how to read the file, select "delimited".
Choose "-" and "." as your delimiter characters.
The file will then be read in, with the first part of the file (the name
of the track) put into it's own column (column A) followed by the name
of the group in the next column (column B) followed by "mp3" in the
third column (column C).
Any file that does not have a "-" in the name won't be processed
correctly according to this scheme, and neither will any file name that
has more than 1 "-" character.
Once the names are read in, you can insert extra columns and copy the
columns to create your batch commands.
What you want is to have this in column A/B/C/D/E/F/G/H/I/J:
Rename/track/-/artist/mp3/" "/artist/-/track/./mp3
So in these columns, put these:
a) Rename
b) track
c) - (dash)
d) mp3
e) " " (space character)
f) artist
g) - (dash)
h) track
i) . (dot)
j) mp3
Then save the file as an MS-DOS text file (save it also as .xls just in
case you screw up). Call it "rename-mp3.txt".
If you then edit the file in notepad, look for double-space characters
and spaces that shouldn't be there. You can perform global
search/replace if necessary. Then rename the file to "rename-mp3.bat"
and then run the file. But again, give it a good read to make sure it's
going to rename them properly before you execute it.