Changing file properties

  • Thread starter Thread starter Gilgamesh
  • Start date Start date
G

Gilgamesh

Using C#, I need to change the summary and description of a file. These are
the properties that are visible in Windows explorer when the user right
clicks on the file an choose properties tab. How can this be done in C#?
 
Hi Gilgamesh,

Take a look at File.GetAttributes, File.SetAttributes and a couple of the other File.Get/Set methods. However, these won't affect the summary of a file as those are taken from the file content itself and varies from file type to file type.

I don't know what you mean by a file description.
 
Hi Morten,
My goal is to programmatically attach a description to a file (which by the
way the file type could be anything), and allow the user to see this
description by viewing the file properties within windows explorer. Do you
know of a good way to do this?

--
Thanks,
Gilgamesh


Morten Wennevik said:
Hi Gilgamesh,

Take a look at File.GetAttributes, File.SetAttributes and a couple of the
other File.Get/Set methods. However, these won't affect the summary of a
file as those are taken from the file content itself and varies from file
type to file type.
 
Back
Top