foreach (var item in mFiles) { string[] info = item.Name.Replace("." + item.Extension, "").Split('-'); using (var obj = ShellObject.FromParsingName(item.FullName)) { obj.Properties.System.Title.Value = info.Length > 1 ? info[1].Trim() : "无"; obj.Properties.System.Author.Value = new string[] { info[0].Trim() }; Console.WriteLine("==========================================="); Console.WriteLine(obj.Properties.System.Title.Value); Console.WriteLine(obj.Properties.System.Author.Value); Console.WriteLine("==========================================="); } }
转载请注明:http://www.cnblogs.com/Rolends
HAPPY EVERY DAY ! !