bat file to loop through array and rename all files in dir
Posted: 29 Jul 2010 09:27
Hi, new to this forum, and just as new to batch files.
I have a directory with over 400 mp3s with file names 1.mp3 through 412.mp3.
I also have a .txt file with the names of each mp3 in order that I could easily create an array with.
How would I write a bat script to loop through each filename and rename it according to the correct name.
Ideally it would end up with #-name (ex. 22-nameofsong.mp3).
I really have no experience here, but I have programming experience in other languages. Thanks a lot, in advance.
I have a directory with over 400 mp3s with file names 1.mp3 through 412.mp3.
I also have a .txt file with the names of each mp3 in order that I could easily create an array with.
How would I write a bat script to loop through each filename and rename it according to the correct name.
Ideally it would end up with #-name (ex. 22-nameofsong.mp3).
I really have no experience here, but I have programming experience in other languages. Thanks a lot, in advance.