469,898 Members | 2,233 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,898 developers. It's quick & easy.

I need to collect the summary info from the file properties

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.
Jul 31 '08 #1
2 2690
"Art" <Ar*@discussions.microsoft.comschrieb:
>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/details.aspx?familyid=9ba6fac6-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>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Aug 1 '08 #2
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.

"Herfried K. Wagner [MVP]" wrote:
"Art" <Ar*@discussions.microsoft.comschrieb:
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/details.aspx?familyid=9ba6fac6-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>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Aug 1 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Mike Button | last post: by
1 post views Thread by mark.engelberg | last post: by
1 post views Thread by help! | last post: by
2 posts views Thread by rufpirat | last post: by
17 posts views Thread by freemann | last post: by
reply views Thread by Kurt B. Kaiser | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.