file attributes of audio file in ASP.net

hey guyz! does anyone of you know how to get the file attribute of audio file at runtime thanks guyz i really need it asap!

Answer this question

file attributes of audio file in ASP.net

  • SonicSue

     ReneeC wrote:

     

    Wow..... hmmmm

    Try the mcisendstring facility.

    -How


  • CygnusX1

     

    Wow..... hmmmm

    Try the mcisendstring facility.



  • sjc1776

     ReneeC wrote:

    Fileinfo class and

    everyone here is not a guy.

    i also need the length!!thanks


  • leugim

    the length of audio file..mm:ss
  • RussellH

    Information on the facility can be found here. It's does a lot. I hope you enjoy the reading.

    http://msdn.microsoft.com/library/default.asp url=/library/en-us/multimed/htm/_win32_mcisendstring.asp

    Calls to the facility are exposed by these DLL references

    Public Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal lpstrReturnString As String, ByVal uReturnLength As integer, ByVal hwndCallback As integer) As integer
    Public Declare Function mciGetErrorString Lib "winmm.dll" Alias "mciGetErrorStringA" (ByVal dwError As integer, ByVal lpstrBuffer As String, ByVal uLength As integer) As integer

    I think but I'm not sure this facility has that capability. It does a lot and has lots features

    that you have to track down. There are also examples and I know once a file is opened

    you have access to that information. That information requires opening a file anyway.

     

     



  • Daraius

    Fileinfo class and

    everyone here is not a guy.



  • file attributes of audio file in ASP.net