Accessing a Files summary metadata
-
Can anyone help me accessing the summary data of file e.g. author, comments etc using ASP.NET (VB code behind) The FSO object only gives limited attribute information such as date created etc Mark Costello Dublin, Ireland
Try the FileInfo class[^].
-
Try the FileInfo class[^].
-
The File Info Class only gives a restricted set of Attributes - name, path, readonly etc. It does not access the summary values of a file - author comments etc. Any other thoughts? Mark Costello Dublin, Ireland
Hi Mark. I see what you mean. You might be able to get to the file comments using the FileVersionInfo.Comments[^] property, but I'm not sure about Author or other custom properties. I've been looking through the windows API reference too, to see if there's a p/invoke means of doing this and haven't found anything yet.
-
The File Info Class only gives a restricted set of Attributes - name, path, readonly etc. It does not access the summary values of a file - author comments etc. Any other thoughts? Mark Costello Dublin, Ireland
Okay - here's another idea. This article shows how to use a COM object for retrieving summary properties from Office documents - does this work for what you're trying to do? http://www.codeguru.com/Csharp/Csharp/cs_data/tutorials/article.php/c4233/[^] (look under Getting File Properties for Office Documents)