Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to make a batch file which can list all the details of mp3 files present in a directory in a file. If I say wmic i dont get the details of the album or artist.

share|improve this question
So what do you get and how using WMIC? – TheUser1024 Nov 11 '12 at 18:50
i am using the syntax as wmic datafile where name= 'C:\\%USERNAMAE%\\Downloads\\123.mp3' – Komal Chauhan Nov 11 '12 at 20:09
Are you sure reading the id3tags is something that can be done with WMIC? It seems to me like this is kinda not the right tool, i might be wrong though. Why did you choose that in the first place? – TheUser1024 Nov 11 '12 at 23:14

You can do this using Tag (latest beta version available here).

share|improve this answer

length can be obtained with tooltipInfo.bat

@if (@X)==(@Y) @end /* JScript comment
    @echo off

    rem :: the first argument is the script name as it will be used for proper help message
    cscript //E:JScript //nologo "%~f0" %*

    exit /b %errorlevel%

@if (@X)==(@Y) @end JScript comment */

FSOObj = new ActiveXObject("Scripting.FileSystemObject");
var ARGS = WScript.Arguments;
if (ARGS.Length < 1 ) {
 WScript.Echo("No file passed");
var filename=ARGS.Item(0);
var objShell=new ActiveXObject("Shell.Application");

ExistsItem = function (path) {
    return FSOObj.FolderExists(path)||FSOObj.FileExists(path);

getFullPath = function (path) {
    return FSOObj.GetAbsolutePathName(path);

getParent = function(path){
    var splitted=path.split("\\");
    var result="";
    for (var s=0;s<splitted.length-1;s++){
        if (s==0) {
        } else {
    return result;

getName = function(path){
    var splitted=path.split("\\");
    return splitted[splitted.length-1];

function main(){
    if (!ExistsItem(filename)) {
        WScript.Echo(filename + " does not exist");
    var fullFilename=getFullPath(filename);
    var namespace=getParent(fullFilename);
    var name=getName(fullFilename);
    var objFolder=objShell.NameSpace(namespace);
    var objItem=objFolder.ParseName(name);
    WScript.Echo(fullFilename + " : ");



It accepts a single argument - tha path to the file .Example output:

icks, Trenches And Swords.mp3 :
Item type: MP3 Format Sound
Size: 3.22 MB
Contributing artists: Pint Shot Riot
Length: 00:03:31
Availability: Available offline
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.