Some months ago, I talked with Diego Cattaruzza about the chance to read the file properties.
It happens that "depends" on the file type. A couple of years ago, if I remember well, I used some PInvoke code to read file properties via COM Structured Storage.
In these days OPC files have properties inside their package in XML format. But if you need to read or write the properties of a generic file you have to deal with the Shell directly.
The first step is to add a reference to the Shell COM object called "Microsoft Shell Controls And Automation".
Now we can read all the file properties using the following snippet:
Privacy | Legal Copyright © Raffaele Rialdi 2009, Senior Software Developer, Consultant, p.iva IT01741850992, hosted by Vevy Europe Advanced Technologies Division. Site created by Raffaele Rialdi, 2009 - 2015 Hosted by: © 2008-2015 Vevy Europe S.p.A. - via Semeria, 16A - 16131 Genova - Italia - P.IVA 00269300109