Windows Scripting
  Home arrow Windows Scripting arrow Reading MP3 ID3 Tags in WSH
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WINDOWS SCRIPTING

Reading MP3 ID3 Tags in WSH
By: Nilpo
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2008-09-24

    Table of Contents:
  • Reading MP3 ID3 Tags in WSH
  • Retrieving file details in WSH
  • Constructing the Script
  • Working with the Data

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Reading MP3 ID3 Tags in WSH


    (Page 1 of 4 )

    ID3 is a popular audio file data tagging format used to store information about a sound file. The MP3 file format uses ID3 tags to store title, artist, and other track information. Unfortunately, WSH doesn’t provide a way to read ID3 tags without the help of third-party components, but today I’m going to show you a native workaround that will allow you to retrieve this valuable information.

    ID3 tags are support by common software programs such as Windows Media Player, iTunes, MusicMatch, and common hardware such as iPod, Creative Zen, and Sony Walkman.

    Windows does contain internal functionality for reading and writing ID3 tags, however there is no scripting interface for accessing this functionality through WSH.  But that doesn’t suggest that it isn’t possible.  As a scripter you sometimes have to think outside of the box.

    In the Windows environment, ID3 tags are most evident in Windows Explorer when browsing a folder containing music files.  If you use Detail View (by selecting Details from the View menu) you will see a series of columns appear.  Many of these columns match the various ID3 tags and this is the information that they display.

    While we may not be able to access ID3 tags directly, the Shell object does allow us to read the values of these columns.  Distinguishing between them now becomes the trick—and it just wouldn’t be Windows if there wasn’t some incompatibility across platforms. As you will see, these columns are identified by number. Microsoft further aids our efforts by leaving these column IDs undocumented.

    But before we get too involved, let’s take a look at these columns and how to read their values.

    More Windows Scripting Articles
    More By Nilpo


       · Did you know that you can use WSH and the Windows Shell object to read the ID3...
       · What would be really usefull is a way to be able to add more tabs on the columns in...
       · There are some third-party ActiveX components available that can do this.
     

    WINDOWS SCRIPTING ARTICLES

    - Introducing Two-Way Data Binding using Silve...
    - Silverlight 2.0 Application Development with...
    - Burning Multisession CDs with IMAPI2 in WSH
    - Creating a Silverlight 2.0 Application that ...
    - Burning CDs with the IMAPI2 Control
    - Burning CDs in Windows XP with WSH
    - Advanced Word Object Scripting
    - Reading and Printing Word Documents in WSH
    - Scripting Microsoft Word
    - Using WSH to Catalog MP3 Files
    - Reading MP3 ID3 Tags in WSH
    - A Brief Look at Menus in WPF
    - More Examples of Simplified Image Processing...
    - Completing a WPF To-Do List Application
    - Simplified Image Processing in GDI+





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
    Stay green...Green IT