How can I extract the date from the “Media Created” column of a video file?

前端 未结 2 1843
执念已碎
执念已碎 2021-01-02 06:42

I need to extract the date from the \"Media Created\" column (highlighted in green in my the example photo below) using C#.

In my example, the \"Media Created\" and

相关标签:
2条回答
  • 2021-01-02 07:42

    There are another way to retrieve data, using the Microsoft.WindowsAPICodePack.Shell namespace.

    ShellObject shell = ShellObject.FromParsingName(path);
    
    var data = shell.Properties.System.Media.DateEncoded;
    
    0 讨论(0)
  • 2021-01-02 07:44

    The extended file properties can be obtained by using Folder.GetDetailsOf() method. As per this thread, the Media Created Date can be retrieved using a property id of 177.

    0 讨论(0)
提交回复
热议问题