Setting the Comment on a Text File

  • Thread starter Thread starter Bubbles
  • Start date Start date
B

Bubbles

I am creating a text file in my application and i want to
set the comment attribute so it can be seen in windows
explorer. I have found the FileVersionInfo class but this
only lets me get comments from files.

Does anyone know how i can set the comment in code?
 
AFAIK, a text file will not be able to store a comment attribute.

Only files that use "Structured Storage" will be able to maintain additional
properties like Comments and Author etc.

"The IStorage interface supports the creation and management of structured
storage objects. Structured storage allows hierarchical storage of
information within a single file, and is often referred to as "a file system
within a file"."
 
Back
Top