corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Batch files - FOR /F


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Batch files - FOR /F
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
6th Jul 11 at 17:20   View Garage View User's Profile U2U Member Reply With Quote

For the life of me I can't remember this.

I've written a batch file that will extract the ID3V2 tags (Title and Track Number), store them as environment variables, rename the title to "%TrackNo% - %CurTitle%" and then delete the environment variables, ready for the next input, but, I cannot for the life of me rememeber how I would set this going for a folder full of songs.

I know it's going to be something like:

FOR /F %%A in ('dir C:\blah\blah\') DO CALL ...

but it isn't happening.

Help!
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
6th Jul 11 at 18:34   View Garage View User's Profile U2U Member Reply With Quote

Idiot, you have to use %1 in the actual command thats why
noshua
Member

Registered: 19th Nov 08
User status: Offline
6th Jul 11 at 19:12   View User's Profile U2U Member Reply With Quote

Can I ask what you're using this for..?
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
6th Jul 11 at 20:10   View Garage View User's Profile U2U Member Reply With Quote

"I've written a batch file that will extract the ID3V2 tags (Title and Track Number), store them as environment variables, rename the title to "%TrackNo% - %CurTitle%" and then delete the environment variables, ready for the next input,"

The Alfa plays my songs of my iPod in bloody track name order, not track order, so I'm appending the track number to the beginning of the track name.,
Dom
Member

Registered: 13th Sep 03
User status: Offline
6th Jul 11 at 20:28   View User's Profile U2U Member Reply With Quote

Why didn't you use Mp3tag (http://www.mp3tag.de/en/)?
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
6th Jul 11 at 20:31   View Garage View User's Profile U2U Member Reply With Quote

Because it doesn't do what I want it to do
Dom
Member

Registered: 13th Sep 03
User status: Offline
6th Jul 11 at 20:44   View User's Profile U2U Member Reply With Quote

quote:
Originally posted by pow
Because it doesn't do what I want it to do


'appending track number to the beginning of the track name' - Mp3tag will do that, use the tag - filename option.
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
6th Jul 11 at 21:08   View Garage View User's Profile U2U Member Reply With Quote

Sorry, perhaps I wasn't as clear as I wanted to me. It's the title MP3 tag I want to change in mass, not the filename
Dom
Member

Registered: 13th Sep 03
User status: Offline
6th Jul 11 at 22:08   View User's Profile U2U Member Reply With Quote

quote:
Originally posted by pow
Sorry, perhaps I wasn't as clear as I wanted to me. It's the title MP3 tag I want to change in mass, not the filename


Use Mp3tag 'Actions' and create a new action to reformat the Title (tag doesn't show in the drop-downs, still works though) tag (Format Value Title: %track% - %title%). Then you can apply that to selected mp3s. Had to do something similar in the past (could have export the action for you), hence why i mentioned it.

[Edited on 06-07-2011 by Dom]
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
7th Jul 11 at 08:59   View Garage View User's Profile U2U Member Reply With Quote

Phaa I've done it this way now

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
Batch file writing Skinz Geek Day 3 723
6th Jul 05 at 11:32
by loafofbrett
 
Backup software Dom Geek Day 9 1148
21st Mar 06 at 19:38
by Steve
 
Inbuilt LAN Messaging? dannymccann Geek Day 12 277
27th Mar 08 at 23:09
by pow
 
converting from RAW flybikeslee Snap Day 3 239
2nd Apr 09 at 23:15
by Adam_B
 
Ephidrine bigdan Sports Day 20 397
16th Dec 09 at 20:46
by slowandstandard
 

Corsa Sport » Message Board » Off Day » Geek Day » Batch files - FOR /F 28 database queries in 0.0140882 seconds