How To Set File Details (not Attributes) in .Net

  • Thread starter Thread starter Brad
  • Start date Start date
B

Brad

(I am writing this on a Vista machine; XP and others may be a bit different
than what I describe here, but you'll get the point...)

When you are using Windows Explorer to move around folders, delete files,
etc., you can right click on a file and hit the Properties button and the
Propertis dialog will appear. You can then click on the "Details" tab and
see details about the file such as "File description", "Product name",
"Copyright", etc.

I would like to know how to set those details from C# or VB code. Can anyone
tell me?

Note that I am NOT talking about how to set file attributes. That is
something completely different.

Thanks,

Brad
 
Hello, Brad,

Sorry, but I don't know Vista. I'm still using XP. But I wonder if you are
referring to the extended file properties available on NTFS?

If so, the following articles/links may be of interest to you:

http://beta.codeproject.com/KB/office/dsofiledemo.asp
http://www.microsoft.com/downloadS/...c6-520b-4a0a-878a-53ec8300c4c2&displaylang=en

Beware though, the extended properties are available only on NTFS file
systems, and will be stripped off if the file is copied to other file systems
(such as on a memory stick of CD/DVD, etc.)

Cheers,
Randy
 
Back
Top