6

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
  • 89,455
  • 62
  • 89
  • 125
Müslüm ÖZTÜRK
  • 961
  • 1
  • 11
  • 30

2 Answers2

3

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

Eli Arbel
  • 22,391
  • 3
  • 45
  • 71
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
  • 153,850
  • 22
  • 249
  • 325
  • 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