Jump to content
Sign in to follow this  
zzen11

Retrieving attributes of a file

Recommended Posts

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:

<{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

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 ...


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...