I need to collect the summary info from the file properties

A

Art

I need to go through a folder and all of its subfolders and collect the
Title, Comments, Keywords and a few other items. These are items that you
see when you select a file in the Windows explorer and look in Properties,
Summary. In VBA I'm able to get at this informatio using Dsofile.dll --
found on a MS site somewhere.

It looks like I'd like to use My.Computer.FileSystem, but I can't seem to
find out how to get what I need.

I'd appreciate any help anyone can give.
 
H

Herfried K. Wagner [MVP]

Art said:
I need to go through a folder and all of its subfolders and collect the
Title, Comments, Keywords and a few other items. These are items that you
see when you select a file in the Windows explorer and look in Properties,
Summary. In VBA I'm able to get at this informatio using Dsofile.dll --
found on a MS site somewhere.

File version information from EXE, DLL, OCX, etc. files can be read using
'System.IO.FileVersionInfo'.

Office file formats (Word documents, etc.) and some other formats store this
meta information as OLE document properties.

The Dsofile.dll files lets you edit Office document properties when you do
not have Office installed
<URL:http://support.microsoft.com/?scid=kb;EN-US;224351>

Microsoft TechNet column: Tales from the Script - March 2005: Dsofile: The
Untold Story
<URL:http://www.microsoft.com/technet/scriptcenter/resources/tales/sg0305.mspx>

Download details: Developer Support OLE File Property Sample (DSOFILE)
<URL:http://www.microsoft.com/downloads/...c6-520b-4a0a-878a-53ec8300c4c2&displaylang=en>

For other file information (description, comments, etc.):

Information is stored in NTFS streams (Windows XP), which can be checked
with this tool:

Streams v1.56
<URL:http://www.microsoft.com/technet/sysinternals/utilities/Streams.mspx>

Basics:

File Streams (Windows)
<URL:http://msdn2.microsoft.com/en-us/library/aa364404.aspx>

How To Use NTFS Alternate Data Streams
<URL:http://support.microsoft.com/?scid=kb;EN-US;105763>

In Windows Vista support for NTFS streams has been removed from the shell:

Michal Morciniec : File Properties in Windows Vista
<URL:http://blogs.msdn.com/micham/archive/2007/09/25/file-properties-in-windows-vista.aspx>
 
A

Art

Herfried,

Thanks very much -- your information was very helpful.

Due to the nature of my job I sometimes code and then for months at a time
am involved in other things. Thus I come and go on this forum. However your
name has become very familiar to me as you have, over the years, always been
very helpful when I get stuck on something. I just wanted to let you know
how much I appreciate it that you take the time to be so helpful.
 

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