onepieceking

Hi,

When you do a right-click on a file in the Window Explorer and clicks on "Properties" and click on "Summary", you will be able to see the detail information such as Title, Author, Comments, etc of the file.

I am trying to be able to write into these fields using a C# application. So far, I used shell32.dll and I am able to read from these fields.

Is there a way to write into the fields using .NET classes or any window api

Thanks.




Re: Visual C# General Set detail information of a file

ShellShock

I don't know how to write these fields, but you can read them using System.Diagnostics.FileVersionInfo without having to use P/Invoke.



Re: Visual C# General Set detail information of a file

Karthikeya Pavan Kumar .B

This is acheived with the "Structured Storage" -IPropertySetStorage interface with StgCreateStorageEx/StgOpenStorageEx methods. Check this link for more details.