Sign in to follow this  
Followers 0
zzen11

Retrieving attributes of a file

6 posts in this topic

Any way to retrieve attributes of a file other than the version using autoit? Like product name, product version, etc, etc, in some of the files.

Thanks!

Share this post


Link to post
Share on other sites

I only know this one:

FileGetVersion ( "filename" )

Share this post


Link to post
Share on other sites

I only know this one:

<{POST_SNAPBACK}>

I am writing a script, it needs to determine the version of software. The version number is on the exe as an attribute called productVersion.

The FileGetVersion only retrieves the version of the file.

Share this post


Link to post
Share on other sites

You mean you want to read out the information that's visible in the "Summary" tab?

(Wow. Long sentence)

Share this post


Link to post
Share on other sites

Any way to retrieve attributes of a file other than the version using autoit? Like product name, product version, etc, etc, in some of the files.

Thanks!

<{POST_SNAPBACK}>

AutoIt doesn't retrieve the resource info from program files.

You could use reshacker for this ...


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

I am afraid it can't be done even with DllCall...

The Func you need is GetFileAttributesEx of the kernel32.dll

But it needs

lpFileName As String, and no problems.

fInfoLevelId As Struct_MembersOf_GET_FILEEX_INFO_LEVELS, autoit cant manage this.

lpFileInformation As Any, no problems (maybe)

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