Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2008 Jul : How to modify the file properties from Delphi?

www.cryer.info
Managed Newsgroup Archive

How to modify the file properties from Delphi?

Subject:How to modify the file properties from Delphi?
Posted by:"Bo Berglund" (bo.berglu..@telia.com)
Date:Sun, 06 Jul 2008 12:50:30 +0200

If I rightclick a file in Windows Explorer and select "Properties"
then a window pops up with a tabbed dialogue. One of the tabs is
titled "Summary" and in this there are some items that one can
actually fill in, such as "Comments".

Now we have a customer request that when we use a particular file for
processing in an automation environment we should write to the comment
the timestamp of usage and some identifying string as well.
He will then use Windows Explorer with the Comment field enabled in
the right-hand pane (Detail view) to see which files have been used
and when.

It is not possible to modify the file contents itself because then it
gets unusable in the main application. Mostly the files in question
are program files for machine tools.

I guess that the "Comment" is some kind of NTFS metadata and now I
would like to know if it is possible to programmatically edit this
info using Delphi 7??


/BoB

Info

Glossary

Replies:

www.cryer.info
Managed Newsgroup Archive