3

Is there a WMI namespace and a class that can be used to obtain the extended properties of a file, such as Owner, Author, Title, Subject, Category, Comments?

please suggest.

skaffman
  • 398,947
  • 96
  • 818
  • 769
user57555
  • 183
  • 4
  • 17

1 Answers1

0

AFAIK, WMI doesn't provides access to the extended file properties. To obtain them, you can use the Folder.GetDetailsOf method (in scripting languages such as PowerShell or VBScript) or the IShellDetails.GetDetailsOf method (in compiled languages such as C++). Take a look at this my answer for an example.

* Not sure I used the correct terminology here when distinguishing between the languages, so please bear with me and feel free to correct.

Community
  • 1
  • 1
Helen
  • 87,344
  • 17
  • 243
  • 314
  • I was assuming that if I can find a WMI namespace, perhaps, it can work consistently on XP/Vista/Window7. Would you happen to know, if the values for COMPANY_NAME, FILE_VERSION, PRODUCT_NAME, PRODUCT_VERSION etc be same on XP/Vista/Window7? – user57555 Mar 18 '10 at 22:53
  • 1
    Most extended properties have different index numbers, except for some basic properties like `Name`, `Size`, `Date modified` etc. Take a look at http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=160880&page=1 -- this page seems to provide the most complete reference of extended properties available in different Windows versions. – Helen Mar 18 '10 at 23:47
  • @Helen: that table is fantastic. – bwerks May 06 '12 at 19:53
  • the table (`[kixtart.org/forums/](http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=160880&page=1)`) isn't available any more – Wolf Dec 01 '15 at 14:55
  • @Wolf: It's hidden behind a login, but you could use an account from http://bugmenot.com/view/kixtart.org. – Helen Dec 02 '15 at 14:49