Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > DOS DIR and length

Reply
Thread Tools Display Modes

DOS DIR and length

 
 
Frank C
Guest
Posts: n/a

 
      05-12-2009
My mp3 music files include a length which is the playing time in minutes and
seconds. I have a simple .bat file to direct the output of DIR to a file. I
input this to a Excel spread sheet to make a track list. I would like to get
the length so the spread sheet would include the lenght, then I could sum the
total time.
How do I get DOS DIR to include the lenght field?
Thanks
--
Frank C
Dell Inspiron 530S
Win Vista Ultimate 64 bit SP1
Dell studio laptop
Win Vista Ultimate 64 bit SP1
HP Photosmart D7260
 
Reply With Quote
 
 
 
 
Tim Slattery
Guest
Posts: n/a

 
      05-12-2009
Frank C <> wrote:

>My mp3 music files include a length which is the playing time in minutes and
>seconds. I have a simple .bat file to direct the output of DIR to a file. I
>input this to a Excel spread sheet to make a track list. I would like to get
>the length so the spread sheet would include the lenght, then I could sum the
>total time.
>How do I get DOS DIR to include the length field?


AFAIK, you don't. The "dir" command can retrieve file attributes that
are stored in the directory entry: hidden, system, archive, read-only.
Getting the time from an mp3 file involves reading the file and
parsing the contents. That's beyond dir's capabilities.

--
Tim Slattery
MS MVP(Shell/User)

http://members.cox.net/slatteryt
 
Reply With Quote
 
+Bob+
Guest
Posts: n/a

 
      05-12-2009
On Tue, 12 May 2009 12:19:23 -0400, Tim Slattery <>
wrote:

>AFAIK, you don't. The "dir" command can retrieve file attributes that
>are stored in the directory entry: hidden, system, archive, read-only.
>Getting the time from an mp3 file involves reading the file and
>parsing the contents. That's beyond dir's capabilities.


You can approximate it by calculating against the file size parameter.
Run a few MP3's, average the time they take vs size, set up a
calculation in the spreadsheet.

 
Reply With Quote
 
Mike Brannigan
Guest
Posts: n/a

 
      05-12-2009
"+Bob+" <> wrote in message
news...
> On Tue, 12 May 2009 12:19:23 -0400, Tim Slattery <>
> wrote:
>
>>AFAIK, you don't. The "dir" command can retrieve file attributes that
>>are stored in the directory entry: hidden, system, archive, read-only.
>>Getting the time from an mp3 file involves reading the file and
>>parsing the contents. That's beyond dir's capabilities.

>
> You can approximate it by calculating against the file size parameter.
> Run a few MP3's, average the time they take vs size, set up a
> calculation in the spreadsheet.
>


And this will only be valid if all the MP3s were ripped at the same bitrate

--

Mike Brannigan

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Length of lines clicker Windows Vista Mail 1 02-19-2009 05:03 AM
length of vista randalel Windows Vista General Discussion 7 11-07-2006 05:03 PM
length checking... Sushrut Windows Vista Drivers 7 05-30-2006 02:51 AM
about block length iwub Windows Vista Drivers 0 06-06-2005 08:20 AM
So how do I get the length of a volume on W2K Jan Bottorff Windows Vista Drivers 2 03-04-2005 07:03 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59