list of file properties (1 Viewer)

smiler44

Registered User.
Local time
Today, 12:48
Joined
Jul 15, 2008
Messages
641
this is part of some code I found on the internet for getting the properties of a file, I just want the duration of an mp4 file. Do the numbers represent what property of the file, the code is to retrieve? It may seem obvious but the code is beyond me and so bit by bit I am trying to decipher it so I can just get the duration.

could you if it is, point me to where I can get a list of these numbers/properties?


Code:
               ' Cells(Row, 4) = FileInfo(currdir, filename, 14) 'album
               ' Cells(Row, 5) = FileInfo(currdir, filename, 21) 'title
               ' Cells(Row, 6) = FileInfo(currdir, filename, 26) 'track
               ' Cells(Row, 7) = FileInfo(currdir, filename, 16) 'genre

thank you

smiler44
 

isladogs

MVP / VIP
Local time
Today, 12:48
Joined
Jan 14, 2017
Messages
18,186
I can help you with that...

The items you listed are some of the extended file properties of the file type
If you look in Windows Explorer the extended property for an MP4 file that you need is Length and its number is 27. However MP4 is a video file

I'm wondering if you meant MP3 as those numbers are for MP3. You still need 27.

More usefully the attached zipped PDF contains a list of all the extended properties (AKA file attributes) for example MP4 & MP3 files. I expect all have the same properties

If you want to do this for other types of file, please download the example database available here: https://www.access-programmers.co.uk/forums/showthread.php?t=294548

It only takes a couple of seconds to test any file and display a report
 

Attachments

  • MP3&MP4ExtendedProperties.zip
    1.2 MB · Views: 95
Last edited:

smiler44

Registered User.
Local time
Today, 12:48
Joined
Jul 15, 2008
Messages
641
oh poo yes isladogs you are quite right. I am after the properties of an mp3 file, sorry and thank you, appreciate it
thank you for the link to the numbers for file attributes, very useful

smiler44
 

Users who are viewing this thread

Top Bottom