I've been looking around @ the forums and Ive tried some of the codes that were suggested...but still I cant properly retrieve an MP3 files artist, title, album and so on..
Now what I have is a list with pathways to MP3 files, I would like to go through these and add them in an INI file like this:
[Main]
The Beatles - Here comes the sun=C:\music\the beatles\here_comes_the_sun.mp3
I thought this code would work, but for some reason i cant have BOTH the sArtist and the sTitle written into the CompString, because when I do, only the artists name is written, not the title. What is wrong?
VB Code:
iniName = App.Path & "\Temp.ini" Dim fNum As Integer Dim sTagIdent As String * 3 Dim sTitle As String * 30 Dim sArtist As String * 30 Dim sAlbum As String * 30 Dim sYear As String * 4 Dim sComment As String * 30 For i = 0 To frmMain.lstfiles.ListCount - 1 fNum = FreeFile Open frmMain.lstfiles.List(i) For Binary As fNum Seek #fNum, LOF(fNum) - 127 Get #fNum, , sTagIdent If sTagIdent = "TAG" Then Get #fNum, , sTitle Get #fNum, , sArtist Get #fNum, , sAlbum Get #fNum, , sYear Get #fNum, , sComment End If Close #fNum CompString = sArtist & " - " & sTitle Write_To_INI "Main", CompString, frmMain.lstfiles.List(i), iniName frmMain.PlayList.AddItem CompString Next i
Sorry for my lousy english, please ask if theres something Ive explained bad.
Please help :(
