Dotnet 人生

 

2012年1月31日

C# 获取mp3文件的歌曲时间长度

摘要: 通过读取目录文件信息,进行解析,简单快捷!添加命名空间: using Shell32; using System.Text.RegularExpressions;添加引用:COM组件的Microsoft Shell Controls And Automationstring dirName = Path.GetDirectoryName(SongPath);SongName = Path.GetFileName(SongPath);//获得歌曲名称FileInfo fInfo = new FileInfo(SongPath);ShellClass sh = new ShellClass().. 阅读全文

posted @ 2012-01-31 14:02 Mr. running 阅读(794) 评论(0) 推荐(0) 编辑

导航