On 12/21/06, Andries Bos <[EMAIL PROTECTED]> wrote:
> Within Windows one could read and edit file properties. These properties
> include title, author, comments, revision number etc.
>
> Does anyone know how the edit/ set these fields.
> i would like to use the comment field.

Are you talking about executable files and shared libraries?
Then use the version info tab of the project options or some code to
change version resource information.

If you want to change the comment field of an arbitrary file like an
MS Word or text document then it is more complicated:
These fields are a stored as separate data streams. This is a feature
of the NTFS file system on windows. Moving/copying a file with such
additional streams to a files system that doesn't support streams
(e.g. FAT, CDFS) will result in a loss of this information.
Creating, modifying, and deleting this streams works similar to
handling the default unnamed data stream of an NTFS file. More
information can be found here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfiles/html/ntfs5.asp

HTH,
Markus

Reply via email to