Author |
Topic  |
|
seven
Senior Member
   
USA
1037 Posts |
Posted - 24 January 2003 : 19:00:42
|
Here's a question for all you hard core programmers. I want to know if there is a way to customize the file property sheets for existing file types in windows. A standard file currently has title, subject, category, keywords, comments, source, author and revision number when you click the advanced button (in Windows 2000). MS Office documents have more fields with some being read only. I know there has to be a registry tweak or Windows API method for customizing the fields for different file types. I need to be able to add a read only field to identify the file without allowing someone to edit or delete the field.
Any thoughts?
|
|
|
Doug G
Support Moderator
    
USA
6493 Posts |
Posted - 24 January 2003 : 19:26:03
|
Not that I know of. |
====== Doug G ====== Computer history and help at www.dougscode.com |
 |
|
sy
Average Member
  
United Kingdom
638 Posts |
Posted - 24 January 2003 : 21:17:47
|
Me neither, maybe you could make your own file type (e.g *.foo), edit these fields you need and then make the computer use whatever program you like as default for opening them?
Dunno really :) |
The pessimist complains about the wind; the optimist expects it to change; the realist adjusts the sails
|
 |
|
HuwR
Forum Admin
    
United Kingdom
20600 Posts |
Posted - 24 January 2003 : 22:27:20
|
As far as I know, only MS Office applications support custom file properties. |
 |
|
seven
Senior Member
   
USA
1037 Posts |
Posted - 25 January 2003 : 07:16:42
|
it looks that way... I'll have to figure something else out.
quote: Originally posted by HuwR
As far as I know, only MS Office applications support custom file properties.
|
|
 |
|
jfitz
Junior Member
 
USA
345 Posts |
Posted - 25 January 2003 : 09:18:57
|
If you're writing programs, as we are, in Delphi, we can add additional properties to the program file as it's being developed. This has been quite useful to us in our work. The properties are stored in the file itself, so there is probably a way to get to them and make changes, but it would take some type of editing capability. Reading the existing data is relatively easy. Developing a program as a stand-alone to allow you to edit or add to those properties might be a bit more tricky. |
--Jördan It's a wasted day if you don't spend at least part of it flying upside down. |
Edited by - jfitz on 25 January 2003 09:22:31 |
 |
|
HuwR
Forum Admin
    
United Kingdom
20600 Posts |
Posted - 25 January 2003 : 09:27:32
|
this is slightly different, since they are appliations and you can define custom properties when coding, it would be a different matter to add your own custom file properties to say a gif file, since graphics programs would not know about these new custom propeerties and would in all probability assume the file is corrupt. Office is different, the file properties already contain a structure which allows creating custom properties, so programs which read office documents know about them and can take them in to account when processing the files. |
 |
|
seven
Senior Member
   
USA
1037 Posts |
Posted - 25 January 2003 : 10:13:51
|
Makes sense... I wanted to see if there was a way to do this, to be able to track the file even if the filename changes.
quote: Originally posted by HuwR
this is slightly different, since they are appliations and you can define custom properties when coding, it would be a different matter to add your own custom file properties to say a gif file, since graphics programs would not know about these new custom propeerties and would in all probability assume the file is corrupt. Office is different, the file properties already contain a structure which allows creating custom properties, so programs which read office documents know about them and can take them in to account when processing the files.
|
|
 |
|
HuwR
Forum Admin
    
United Kingdom
20600 Posts |
Posted - 25 January 2003 : 10:32:29
|
this may be possible, since some files keep a record of their original name, will see if I can dig out the info. |
 |
|
seven
Senior Member
   
USA
1037 Posts |
Posted - 25 January 2003 : 12:14:01
|
Thanks Huw.
quote: Originally posted by HuwR
this may be possible, since some files keep a record of their original name, will see if I can dig out the info.
|
|
 |
|
|
Topic  |
|