View unanswered posts | View active topics It is currently 23 Apr 2014 18:38



Post new topic Reply to topic  [ 2 posts ] 
bat file to loop through array and rename all files in dir 
Author Message

Joined: 29 Jul 2010 09:21
Posts: 1
Post bat file to loop through array and rename all files in dir
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.


29 Jul 2010 09:27
Profile
Expert

Joined: 17 Oct 2009 08:30
Posts: 378
Location: Russia
Post Re: bat file to loop through array and rename all files in d
This can be easily done by batch a loop with a "for" command (read .txt file by line) & counter. See for/? and set/? for help.
But if the mp3s have a tags, rename files on reliable information from the tags through a specialized program like http://www.mp3tag.de/en/


29 Jul 2010 11:52
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: Dos_Probie, Google [Bot], ShadowThief and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Forum style by Vjacheslav Trushkin for Free Forums/DivisionCore.