Script Patterns by Riley

How to extract the date from the "Media Created" column of a video file

Problem Statement: Extracting extended file properties, such as the Media Created Date, is necessary for certain applications. Utilizing the Microsoft.WindowsAPICodePack.Shell namespace facilitates this task efficiently.

Approach: Utilize the ShellObject class from the WindowsAPICodePack.Shell namespace to access extended file properties. Specifically, retrieve the Media Created Date using the System.Media.DateEncoded property.

using Microsoft.WindowsAPICodePack.Shell;

ShellObject shell = ShellObject.FromParsingName(path);
var mediaCreatedDate = shell.Properties.System.Media.DateEncoded;

Explanation: This code utilizes the ShellObject class to access extended file properties. It fetches the Media Created Date of a file specified by its path using the System.Media.DateEncoded property, providing crucial metadata for various applications.

Further resources

Comments (6)

XRumer23Duall

6/19/2024 12:37:26 PM
Hey people!!!!! Good mood and good luck to everyone!!!!!

PillsKnime

6/18/2024 10:16:01 AM
Erectile dysfunction treatments available online from TruePills. Discreet, next day delivery and lowest price guarantee. Viagra is a well-known, branded and common erectile dysfunction (ED) treatment for men. It's available through our Online TruePills service. Trial ED Pack consists of the following ED drugs: Viagra Active Ingredient: Sildenafil 100mg 5 pills Cialis 20mg 5 pills Levitra 20mg 5 pills https://true-pill.top/ Acyclo-v Naprocet Prexim Dexagil

PillsKnime

6/18/2024 8:29:49 AM
Erectile dysfunction treatments available online from TruePills. Discreet, next day delivery and lowest price guarantee. Viagra is a well-known, branded and common erectile dysfunction (ED) treatment for men. It's available through our Online TruePills service. Trial ED Pack consists of the following ED drugs: Viagra Active Ingredient: Sildenafil 100mg 5 pills Cialis 20mg 5 pills Levitra 20mg 5 pills https://true-pill.top/ Virulax heumann Fluzole Limitral Gabictal

magropsy

6/16/2024 7:17:43 PM
[URL=https://matchnow.info] Pretty Girls from your town[/URL]

Mike Walker

5/21/2024 9:02:55 AM
Hi there, I have reviewed your domain in MOZ and have observed that you may benefit from an increase in authority. Our solution guarantees you a high-quality domain authority score within a period of three months. This will increase your organic visibility and strengthen your website authority, thus making it stronger against Google updates. Check out our deals for more details. https://www.monkeydigital.co/domain-authority-plan/ NEW: Ahrefs Domain Rating https://www.monkeydigital.co/ahrefs-seo/ Thanks and regards Mike Walker

Mike Taft

5/15/2024 7:22:17 AM
Hi there, My name is Mike from Monkey Digital, Allow me to present to you a lifetime revenue opportunity of 35% That's right, you can earn 35% of every order made by your affiliate for life. Simply register with us, generate your affiliate links, and incorporate them on your website, and you are done. It takes only 5 minutes to set up everything, and the payouts are sent each month. Click here to enroll with us today: https://www.monkeydigital.org/affiliate-dashboard/ Think about it, Every website owner requires the use of search engine optimization (SEO) for their website. This endeavor holds significant potential for both parties involved. Thanks and regards Mike Taft Monkey Digital

Leave a Comment

All fields are required. Your email address will not be published.