I was making a app to store music in a libary and get mp3 ID3 tags but all the code snippets ive found are really complicated, i tried using the my.computer.filesystem.getfileinfo to add the tags to a box

Dim tags As ObjectModel.ReadOnlyCollection(Of String) = My.Computer.FileSystem.GetFileinfo(my.computer.filesystem.getfiles("C:\Program files\TuNeAgE music"))
        Dim Foundtags(tags.Count - 1) As String
        tags.CopyTo(Foundtags, 0)

but i get an error with My.Computer.FileSystem.GetFileinfo(my.computer.filesystem.getfiles("C:\Program files\TuNeAgE music"))does anyone know how to get the info of all the files in a directory into a box OR get the ID3 tags of all music files in a directory and put them in a box (simply)

I still get errors

is there a simple way to do it?

also im using this to put the files in a box

Dim ListOfSongs As ObjectModel.ReadOnlyCollection(Of String) = My.Computer.FileSystem.GetFiles("C:\Program files\TuNeAgE Music")

        Dim FoundFiles(ListOfSongs.Count - 1) As String

        ListOfSongs.CopyTo(FoundFiles, 0)
        Addsong.Visible = True

this adds also there path e.g. C:\folder\file.mp3
i want it just so it says file.mp3

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.