views:

129

answers:

1

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.

A: 

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.

Helen
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?
Helen