Jump to content

reading in file properties


Recommended Posts

Hi

within the properties of every file there is a summary tab. it would be very useful if i could retrieve any information from the section. is there a way to do this please.

I have looked through the helpfile and found a FileGetShortcut command which sort of does this but only for short cuts.

Link to comment
Share on other sites

You should use ExtProp.au3 (Get it HERE)

Here's an example code (it gets the w and h of a video):

#include "ExtProp.au3"

$file = "c:\video.wmv";change this with the location of the file

$w = _GetExtProperty($file,27)
$h = _GetExtProperty($file,28)
$d = _GetExtProperty($file,21)

MsgBox(32,"File Info","File : " & $file & @CRLF & @CRLF & "Width : " & $w & @CRLF & "Height : " & $h & @CRLF & "Duration : " & $d)
Link to comment
Share on other sites

  • 3 years later...
  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...