File MetaData (Summary)

G

Guest

G'Day

I'm trying to develop an application to manage my .pdf and .chm files. To do
so, I want to access (read/write) the Metadata of the files, like
File->Properties->Summary in the Windows explorer.

I already searched for solutions, but honestly I'm a bit lost... does
somebody knows an 'idiots guide' for that problem or perhaps some C# lines of
demo code?!

Cheers
 
L

Lee Crabtree

I'm also looking for this information. If you happen to figure this
out, post it here for the rest of us, please.

Lee Crabtree
 
L

Lee Crabtree

Alright, after several days of tireless translation, I've figured out
how this stuff works.

The basic rundown is as follows:

The metadata you're looking for is actually made possible by the NTFS
filesystem. That is, if you try to find these properties on a
FAT32-formatted drive, you come up empty-handed.

There isn't an assembly in the .NET canon directly responsible for
accessing those properties, but it is possible to get at them via a
couple of COM interfaces, namely IPropertyStorage and
IPropertySetStorage. After some searching through the back alleys of
the 'net, I found some VB .NET code that had been written to do exactly
what I was searching for. I have since found a multitude of new reasons
to hate Visual Basic, and despise the coding practices that seem to
cling to it like a diseased remora.

Ahem.

I don't have a place to upload the code here, but if you'd like to email
me at lcrabtree AT goisi DOT com, I'd be happy to provide what I've got.

Lee Crabtree
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top