Board logo

标题: [技术讨论] [分享]VBS批量修改mp3音频文件的属性 [打印本页]

作者: DAIC    时间: 2015-11-4 22:56     标题: [分享]VBS批量修改mp3音频文件的属性

用iTools往iPhone里面导入了一批mp3文件,手机里面显示的都是Untitled,所以修改了以下三个属性,解决手机里面的显示问题:
  1. folderName = "D:\济公传\01优酷60回\"
  2. strAlbum = "济公传01优酷60回"
  3. strAuthor = "郭德纲"
  4. Set objFSO=CreateObject("Scripting.FileSystemObject")
  5. Set objFiles=objFSO.GetFolder(folderName).Files
  6. For Each objFile In objFiles
  7.     modifyMp3Tags folderName, objFile.Name
  8. Next
  9. Sub modifyMp3Tags(filePath, fileName)
  10.     WScript.Echo filePath & fileName
  11.     Set objWMP = CreateObject("WMPlayer.ocx")
  12.     Set objMedia = objWMP.newMedia(filePath & fileName)
  13.     objMedia.setItemInfo "Title", objFSO.GetBaseName(fileName)
  14.     objMedia.setItemInfo "Author", strAuthor
  15.     objMedia.setItemInfo "WM/AlbumTitle", strAlbum
  16. End Sub
复制代码

作者: CrLf    时间: 2015-11-4 23:18

用 iPhone 的壕,快发红包




欢迎光临 批处理之家 (http://www.bathome.net/) Powered by Discuz! 7.2