Bill Golden
asked on
Batch Renaming of Files
Amazon Music, for reasons only know to them, downloads the following file
Mason Williams - Change the World.MP3
renaming the files during download as follows:
01-02- Change the World.MP3
I know restoring the artist's name is going to be difficult, but how do I batch rename...
01-02- Change the World.MP3 to Change the World.MP3
01-04- Hello, Goodbye.MP3 to Hello, Goodbye.MP3
02-02- Ticket to Ride.MP3 to Ticket to Ride.MP3
In other words, stripping the 0?-0?- from the front-end of the filename.
I have tried several iterations of REN such as REN "0?-0?-*.MP3" "*.MP3", but nothing I do seems to work. Suggestions?
Mason Williams - Change the World.MP3
renaming the files during download as follows:
01-02- Change the World.MP3
I know restoring the artist's name is going to be difficult, but how do I batch rename...
01-02- Change the World.MP3 to Change the World.MP3
01-04- Hello, Goodbye.MP3 to Hello, Goodbye.MP3
02-02- Ticket to Ride.MP3 to Ticket to Ride.MP3
In other words, stripping the 0?-0?- from the front-end of the filename.
I have tried several iterations of REN such as REN "0?-0?-*.MP3" "*.MP3", but nothing I do seems to work. Suggestions?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No, ren with wildcards will not d. It can only replace parts of same length, or add extensions etc.
You'll need a loop in a batch file:
You'll need a loop in a batch file:
@echo
setlocal EnableDelayedExpansion
pushd C:\Music\
for %%n in "*-*-*.mp3") do (
set name=%%~n
ren !name! !name:~7!
)
This cuts of the first 7 characters of the name, if it contains at least two dashes.
ASKER
Shaun, Qlermo, I could not get either routine to work.
However Shaun, the ID3 Renamer re-directed me to ID3 Tag Editor which solved both problems at the same time.
However Shaun, the ID3 Renamer re-directed me to ID3 Tag Editor which solved both problems at the same time.
I suggest to try KrojamSoft BatchRename
Open in new window