VB Code:
  1. Private Sub Drive1_Change()
  2. Dim x As Integer
  3. Dim fname As String
  4.  
  5. If Drive1.Drive = "c:" Then
  6.     File1.Path = "c:\Mp3s"
  7. Else
  8. File1.Path = "d:\mp3s"
  9. End If
  10.  
  11.    
  12.     For x = 0 To File1.ListCount - 1
  13.         fname = File1.Path & "\" & File1.List(x)
  14.        
  15.         Set i = ListView1.ListItems.Add(, , File1.List(x))
  16.         i.SubItems(1) = File1.Path
  17.     DoEvents
  18.    
  19.     Next
  20. End If
  21.  
  22. End Sub