Tag: 摘录

如何从video文件的“媒体创建”列中提取日期?

我需要使用C#从“Media Created”列中提取日期(在下面的示例照片中以绿色突出显示)。 在我的示例中,“Media Created”和“Date”列完全相同。 但是,有几种情况并非如此。 “媒体创建”列包含实际录制video的正确日期。 这是我用来获得它的function。 感谢Aziz指出我正确的方向: Shell shell = new ShellClass(); Folder folder = shell.NameSpace(_File.DirectoryName); FolderItem file = folder.ParseName(_File.Name); // These are the characters that are not allowing me to parse into a DateTime char[] charactersToRemove = new char[] { (char)8206, (char)8207 }; // Getting the “Media Created” label (don’t really need this, […]