Click here to Skip to main content
15,889,669 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a binary file created by my program. Now I want to add a 'PAN' property to it which should be displayed in details tab of windows file property window. Is there a way to do it? MP3 files have it. is it supported for all files?
I would like to know how to do it programmatically ?
Posted
Comments
Sergey Alexandrovich Kryukov 1-Feb-11 22:25pm    
I suggest you change title of this question to "Extending file properties". In this case, you can get some chance that some expert well familiar to the topic can recognize it and give more detailed advice (such as sample code).
--SA

1 solution

No, of course not. What a MP3 format (as well as some other media files) has is the meta-data "tag" which is known by file managers and can be used to show file details. This is a part of file content, but not of file attributes. Only the file attributes (such as name, time of creation, last modification and last access, "archive", "read-only" attributes, etc.) are the universal part of a file system object.

If you need similar feature for you binary file format, you will have to add desired record to this file format, as a part of file content.

As this is entirely proprietary meta-data, OS won't be able to recognize it is any universal way.
If you need to process such files is some proprietary way by the system Shell, you can do it.
(I assume you want to use Windows.)

To achieve that, you will need to learn and implement very specific type of application working as a plug-in to the Shell, called Shell Extension. You can start here: http://msdn.microsoft.com/en-us/library/cc144067(v=vs.85).aspx[^].

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900