473,385 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Changing file properties

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#?

--
Thanks,
Gilgamesh
Nov 16 '05 #1
2 2438
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.

--
Happy coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #2
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" <Mo************@hotmail.com> wrote in message
news:opscnovpzgklbvpo@morten_x.edunord...
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.

--
Happy coding!
Morten Wennevik [C# MVP]

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Fred Chen | last post by:
Hi, I've created a custom component. I want one of the properties of my custom component to be the output file name which is found in project properties. I know that I can get this by writing...
2
by: Fred Chen | last post by:
Hi, I've created a custom component. I want one of the properties of my custom component to be the output file name which is found in project properties. I know that I can get this by writing...
1
by: mplus_2000 | last post by:
I have recently inherited a database. The switchboard (and other forms) displays the name of the database on it (top, center). Currently the name that appears is Reviews. There are plans to roll...
6
by: kdd21 | last post by:
Hi, Just got my first service written in VB-- works fine but the event log was showing the start stop entries as Service1 so I went in to change it, but changing the servicename properties in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.