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
7/16/2024 9:55:55 AMPillsKnime
6/20/2024 7:58:56 PMPillsKnime
6/20/2024 7:50:52 PMPillsKnime
6/20/2024 2:51:01 PMPillsKnime
6/20/2024 12:38:54 PMX23Duall
6/20/2024 6:51:46 AMPillsKnime
6/20/2024 6:06:21 AMPillsKnime
6/20/2024 5:44:07 AMXRumer23Duall
6/19/2024 12:37:26 PMPillsKnime
6/18/2024 10:16:01 AM