Sign in to follow this  
Followers 0
vickerps

reading in file properties

5 posts in this topic

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.

Share this post


Link to post
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)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I have my post canceled

Edited by fulgor

Share this post


Link to post
Share on other sites

Hallo Limiter and weaponx,

Thank You for Your answers and the example code.

But now I also need SET the extended properties.

Can You help here too?

Fulgor

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0