dcsimg
Results 1 to 4 of 4

Thread: getting length

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2005
    Posts
    54

    getting length

    i am creating a program which returns a list of the filenames in a folder and some other relevant info such as extension, type, size etc.

    Now if the files in a folder, happens to be mp3s, is it possible that somehow i will return the length of the mp3 as well please ?

    Thank You

    P.S. I am getting the above info, by referencing the Miscrosoft Scripting.

  2. #2
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    Re: getting length

    If you can find out the bitrate of the file its pretty simple, take the filesize and devide it by the bitrate......

    To find out the bitrate you can try www.wotsit.org and search for the mp3 filetype description but there might be an easier way if the scripting offers the bitrate.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2005
    Posts
    54

    Re: getting length

    but there might be an easier way if the scripting offers the bitrate.
    Does visual basic 6, offers any support to get the bitrate please ?

    Thank You

  4. #4
    Super Moderator Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,335

    Re: getting length

    Quote Originally Posted by Moxxu
    Does visual basic 6, offers any support to get the bitrate please ?

    Thank You
    Not that I've ever seen.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    When you have received an answer to your question, please mark it as resolved using the Thread Tools menu.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    I dont answer coding questions via PM or EMail. Please post a thread in the appropriate forum section.

    Creating A Wizard In VB.NET
    Paging A Recordset
    What is wrong with using On Error Resume Next
    Good Article: Language Enhancements In Visual Basic 2010
    Upgrading VB6 Code To VB.NET
    Microsoft MVP 2005/2006/2007/2008/2009/2010/2011/2012/Defrocked

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width