以下是引用wenniu9在2016/4/21 10:13:00的发言:
如果我想只读取音乐时长,不要其它相关信息。
什么意思,你想得到音乐的时长?
Dim shell As New Shell32.Shell()
Dim folder As Shell32.Folder = shell.[NameSpace](System.IO.Path.GetDirectoryName("d:\test.mp3"))
Dim item As Shell32.FolderItem = folder.ParseName("test.mp3")
msgbox(folder.GetDetailsOf(item, -1))
http://www.foxtable.com/help/topics/1936.htm
需要引用 shell32.dll