Discussion:
How to Read and Write File Property?
(too old to reply)
BE
2008-07-02 12:47:21 UTC
Permalink
Hi,

In windows XP, one can right click on a file and go to the Property
option and look at the Summery tab. How and one read and write this info
to the File property field in BCB2007?

Thanks

-Bill
Remy Lebeau (TeamB)
2008-07-02 16:29:38 UTC
Permalink
Post by BE
In windows XP, one can right click on a file and go to the
Property option and look at the Summery tab. How and
one read and write this info to the File property field in BCB2007?
You have to use the IPropertySetStorage interface:

The Summary Information Property Set
http://msdn.microsoft.com/en-us/library/aa380376(VS.85).aspx

Go to http://www.deja.com to search for code examples that have been posted
before.


Gambit
Antony Corbett
2008-07-02 16:52:28 UTC
Permalink
In windows XP, one can right click on a file and go to the Property option
and look at the Summery tab. How and one read and write this info to the
File property field in BCB2007?
Whilst this works in XP, Vista is not the same. MS states: "Windows Vista
property system does not provide a built-in mechanism that exploits the
secondary NTFS streams for property storage". So there are no such Summary
tabs in Vista (or beyond?).

http://msdn.microsoft.com/en-us/library/bb776860.aspx

You can use the Windows Shell API to do what you want

Rgds
--
Antony

Loading...