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("===========================================");
              }

          }
posted on 2011-09-30 00:41  rolends1986  阅读(354)  评论(0编辑  收藏  举报