c# 批量修改 mp3 文件 title

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

using TagLib;

namespace FileChange
{
    class Program
    {
        static void Main(string[] args)
        {
            string path = @"C:******\Desktop\File\";        

            DirectoryInfo di = new DirectoryInfo(path);

            foreach (FileSystemInfo fsi in di.GetFileSystemInfos()) 
            {
                TagLib.File f = TagLib.File.Create(path + "\\" + fsi.Name);  // Taglib Third library
                f.Tag.Title = fsi.Name;
                f.Save();
                
            }
            
          
        }
    }
}

    原文作者:shulin85
    原文地址: https://blog.csdn.net/shulin85/article/details/8075216
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞