Successfully added
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
Referenced in:
Leave a Comment
All fields are required. Your email address will not be published.
Comments(10)
Marthajamma
9/15/2024 2:05:56 AMValeron83Duall
8/23/2024 8:17:57 AMBumecaiReulk
8/22/2024 7:10:05 PMJefferyfen
8/19/2024 7:37:25 PMJefferyfen
8/19/2024 5:56:45 PMWayneJaina
8/19/2024 5:56:04 AMAaronfut
8/17/2024 5:52:06 PMPetergrida
8/15/2024 7:22:43 PMMarthajamma
7/16/2024 9:55:55 AMPillsKnime
6/20/2024 7:58:56 PM