3

Try going to any file, right clicking on it, and clicking on the "Details" tab. Like this photo enter image description here

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

Toto
  • 86,179
  • 61
  • 85
  • 118
Müslüm ÖZTÜRK
  • 911
  • 1
  • 10
  • 29

2 Answers2

3

You can use the Windows API Code Pack. It has wrappers for the Windows Property System.

Eli Arbel
  • 21,775
  • 3
  • 42
  • 70
2

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;
}
Patrick Hofman
  • 148,824
  • 21
  • 237
  • 306
  • in first line, I am getting this error : An unhandled exception of type 'System.ArgumentException' occurred in Microsoft.WindowsAPICodePack.Shell.dll Additional information: The given CanonicalName is not valid. – Müslüm ÖZTÜRK Mar 07 '14 at 20:26
  • @MuslumOzturk: please create a new question with code and sample. – Patrick Hofman Mar 07 '14 at 22:34