Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionDim fichiersTrouvé = Directory.GetFiles(chemin & "\Musique", "*.*", SearchOption.AllDirectories) For Each ligneF In fichiersTrouvé Dim j, m1, m2, m3, m4, m5, m6, m7, m8, m9, m10 As String j = 0 j = j + 1 If j = 1 Then m1 = ligneF End If If j = 2 Then m2 = ligneF End If If j = 3 Then m3 = ligneF End If If j = 4 Then m4 = ligneF End If If j = 5 Then m5 = ligneF End If If j = 6 Then m6 = ligneF End If If j = 7 Then m7 = ligneF End If If j = 8 Then m8 = ligneF End If If j = 9 Then m9 = ligneF End If If j = 10 Then m10 = ligneF End If Next
Dim files = Directory.GetFiles(chemin & "\Musique", "*.*", SearchOption.AllDirectories) Dim file Dim i As Integer, m() As String For Each fileIn files Redim Preserve m(i) m(i) = file i++ Next