Also, as I'm guessing you got that code from http://www.motobit.com/tip
Main Topics
Browse All TopicsHello,
I need some help setting id3 tags using the file names of mp3s. I have 75 files that need to be named according to their actual filenames.
So lets say all songs in C:\songs have filenames that I want to keep, but none of these mp3s have ID3 tags for the TITLE field. In ITUNES or anything else, I don't know which file is which.
I came accross some scripts on the internet, but not really helping. Here is one:
__________________________
'get FileSystemObject To enumerate files
Dim FS
Set FS = CreateObject("Scripting.Fi
'Get id3 object To change data
Dim id3
Set id3 = CreateObject("CDDBControl.
'Enumerate folder files
Dim File
Set Files = FS.GetFolder(sFolder).File
For Each File In Files
'Select only mp3 files In the folder
If LCase(Right(File.Name, 4)) = ".mp3" Then
'Load id3 data from the file
id3.LoadFromFile File.Path, False
'Change Artist In the id3 data
id3.Title = File.Name
'Save modified id3 data To the file
id3.SaveToFile File.Path
End If
Next
__________________________
I am receiving an error on line 11, chr 1.
Any ideas?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Also, as I'm guessing you got that code from http://www.motobit.com/tip
Glad to help! For my tags, I use a 3rd party program to organize mine, I recommend mp3tag ( http://www.mp3tag.de/en/ ) as it is freeware and very powerful. Took a few minutes to get my bearings straight with it (as I had been using a non-freeware one called Dr. Tag for years, until I formatted my HD and realized I no longer had the email for it), but once I did I realized I liked it much more than Dr Tag.
If you've got a big collection of mp3s, good luck on the tagging journey ahead of you :) It gets tedious to do, but I find its quite worthwhile in the long run.
Let me know if you need anything else!
Matt
Business Accounts
Answer for Membership
by: mvidasPosted on 2007-08-24 at 08:01:21ID: 19762722
What error are you receiving? Have you set the sFolder variable or substituted "C:\songs\" (with quotes) in place of sFolder?
Matt