Option Explicit Private Sub Command1_Click() Dim num As Integer Dim filename As String Dim filenum As Integer Dim i As Integer num=File1.ListCount filenum=FreeFile Open ″C:\filelist.m3u″ For Output As #filenum For i=0 To num-1 If File1.Selected(i) Then filename=File1.Path+″\″+File1.List(i) End If Print #filenum,filename Next Close #filenum MediaPlayer1.filename=″C:\filelist.m3u″ End Sub
Private Sub Dir1_Change() File1.Path=Dir1.Path End Sub
Private Sub Drive1_Change() Dir1.Path=Drive1.Drive End Sub