Hi, I'm hoping someone can help me. I'm trying to use the following code but also include a variable..
Works...
Dim files As ObjectModel.ReadOnlyCollection(Of String) = _
My.Computer.FileSystem.GetFiles(drivepath,
FileIO.SearchOption.SearchTopLevelOnly, "*.mp3")
Does't work
Dim Musicfiletypes as string = "*.mp3"
Dim files As ObjectModel.ReadOnlyCollection(Of String) = _
My.Computer.FileSystem.GetFiles(drivepath,
FileIO.SearchOption.SearchTopLevelOnly, Musicfiletypes)
I'm sure it's an easy fix.. I actually want to use the multifile option ie.. "*.mp3","*.avi" etc..
thanks
Steve
Works...
Dim files As ObjectModel.ReadOnlyCollection(Of String) = _
My.Computer.FileSystem.GetFiles(drivepath,
FileIO.SearchOption.SearchTopLevelOnly, "*.mp3")
Does't work
Dim Musicfiletypes as string = "*.mp3"
Dim files As ObjectModel.ReadOnlyCollection(Of String) = _
My.Computer.FileSystem.GetFiles(drivepath,
FileIO.SearchOption.SearchTopLevelOnly, Musicfiletypes)
I'm sure it's an easy fix.. I actually want to use the multifile option ie.. "*.mp3","*.avi" etc..
thanks
Steve