473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Summary properties of a file

When you right-click on a file in Windows and choose Summary, Advanced, you
get a set of properties which (in the case of a digital camera photo) tell
you quite a bit about the picture.

In some cases these are EXIF properties of the image file. I know how to
read those (by loading the file as an image and looking at its property
set).

But in other cases it appears that Windows obtains them through drivers or
something.

Is there a general way for a C# program to obtain the same set of
information about a file that would be seen by the user right-clicking and
choosing Summary, Advanced?
Nov 17 '05 #1
2 2380
Is there a general way for a C# program to obtain the same set of
information about a file that would be seen by the user right-clicking and
choosing Summary, Advanced?


The Structured storage COM APIs are used to read this information. For
files that (unlike Office files for example) don't carry the metadata
themselves, it's stored in an NTFS alternate data stream called
something like "\x5SummaryInformation" IIRC.
Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 17 '05 #2
Michael,

You can download Edanmo Morcillo's VB.NET implementation of Microsoft's
Structured Storage API at
http://www.mvps.org/emorcillo/en/code/grl/storage.shtml. It's not C#
but with a little effort, you can convert it. It also has a demo
program that's helps you view the storage structure. HTH

Jason
Michael A. Covington wrote:
When you right-click on a file in Windows and choose Summary, Advanced, you
get a set of properties which (in the case of a digital camera photo) tell
you quite a bit about the picture.

In some cases these are EXIF properties of the image file. I know how to
read those (by loading the file as an image and looking at its property
set).

But in other cases it appears that Windows obtains them through drivers or
something.

Is there a general way for a C# program to obtain the same set of
information about a file that would be seen by the user right-clicking and
choosing Summary, Advanced?

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: gguindon | last post by:
I can't figure out how to set those properties (with C# programmatically) found on the Summary tab if you select the properties by right clicking on the file in Windows Explorer (that is for NTSF...
1
by: Derrald | last post by:
I am trying to change the Summary info on an Access 2000 file using VB ..net (I guess that VB6 would probably be the same). This is the summary information that shows up when you right click on the...
4
by: traveler92118 | last post by:
I am using Access 2003. Part 1. I am trying to find a way to have the title from the Database Properties/Summary window to be copied to the File/Properties/Summary/Title field? Part 2. The...
2
by: =?Utf-8?B?QXJ0?= | last post by:
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.