标题: [技术讨论] [分享]VBS批量修改mp3音频文件的属性 [打印本页]
作者: DAIC 时间: 2015-11-4 22:56 标题: [分享]VBS批量修改mp3音频文件的属性
用iTools往iPhone里面导入了一批mp3文件,手机里面显示的都是Untitled,所以修改了以下三个属性,解决手机里面的显示问题:
- folderName = "D:\济公传\01优酷60回\"
- strAlbum = "济公传01优酷60回"
- strAuthor = "郭德纲"
-
- Set objFSO=CreateObject("Scripting.FileSystemObject")
- Set objFiles=objFSO.GetFolder(folderName).Files
- For Each objFile In objFiles
- modifyMp3Tags folderName, objFile.Name
- Next
-
- Sub modifyMp3Tags(filePath, fileName)
- WScript.Echo filePath & fileName
- Set objWMP = CreateObject("WMPlayer.ocx")
- Set objMedia = objWMP.newMedia(filePath & fileName)
- objMedia.setItemInfo "Title", objFSO.GetBaseName(fileName)
- objMedia.setItemInfo "Author", strAuthor
- objMedia.setItemInfo "WM/AlbumTitle", strAlbum
- End Sub
复制代码
作者: CrLf 时间: 2015-11-4 23:18
用 iPhone 的壕,快发红包
欢迎光临 批处理之家 (http://www.bathome.net/) |
Powered by Discuz! 7.2 |