This question already has an answer here:
Try going to any file, right clicking on it, and clicking on the "Details" tab. Like this photo
I want to change this values. Also Can I add custom properties the file details. Especially I want to do this changes for tif,jpeg,png,pdf files. Can I see my custom properties in "Details" window?
I found this page but it can change only office files. http://www.microsoft.com/en-us/download/details.aspx?id=8422
You can use the Windows API Code Pack. It has wrappers for the Windows Property System.
Just an addition to Eli Arbels answer, an example from the documentation from the Windows API Code Pack (which works very well for us):
IShellProperty prop = ShellObject.FromParsingName(fileName).Properties.GetProperty(propertyName);
if (prop.ValueType == typeof(string))
{
(prop as ShellProperty<string>).Value = value;
}
来源:https://stackoverflow.com/questions/21982898/get-or-set-file-details-programmatically