Setting Extended File Properties of Image or Media Files in VB.Net
Posted on 2013-11-01
I'm writing a VB.Net application in which users need to be able to play and/or view date and time-sensitive media files (WMV, WMA, AVI, MP4, MOV, MP3, etc.). There are also image/other files (GIF, TIFF, BMP, JPG, PDF, etc) that will have a sensitive date/time.
The date/time of each file must not change once it has been created.
Using the DATE CREATED or DATE MODIFIED properties of the files won't work because the important date/time of the media file or image file could be different than when the file was created.
In VB.Net, what would be the best method to add a Creation Date and Creation Time to a file so that we can also read it when playing back the file (i.e. media file) or displaying an image file (JPG or PDF)?
I'm guessing that writing the date/time information in the extended file properties is where this is leading. Does anybody have an example of how to write the Date/Time into one of the extended file properties - let's say the DESCRIPTION property?