Click here to Skip to main content
15,302,403 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I am creating my own custom file using a filestream/binary writer and I am looking to write custom details attributes to the file (similar to what you'd see when you go to Details when right click> properties on an MP3).

The properties I want to add are Duration (DateTime) and Counter (int32).

How do I do this? (Is it possible?)

Thanks!
Posted

Hello,

MP3 file format uses ID3 metadata[^]. It allows information such as the title, artist, album, track number, and other information about the file to be stored in the file itself. The windows OS already has support for this file format and necessary code to retrieve the ID3 metadata. That's the reason you are able to see this information when you right click the file and select properties.

For windows to be able to retrieve such tags from your file you need to make windows aware of it and it's typically done via a shell extension. See following CP articles which will get you started

Once you have your shell extension ready, you will have to register it with the OS and against your file name extension.
Windows explorer will then use it to retrieve metadata from your file and display it. Please note that this is rather an over simplified explanation.


Regards,
   

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