Dim files() As String files = Directory.GetFiles("C:\", "*.mp3") Dim file As String For Each file In files ListBox1.Items.Add(Path.GetFileName(file)) Next
output : 001.mp3 stand.mp3 mp3.mp3 ....
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)