Dim di As New IO.DirectoryInfo("c:\")
 Dim diar1 As IO.FileInfo() = di.GetFiles("*.jpg")

How can i use multiple filter to retrieve list of files in directory.

i tried some examples for troubleshooting
("*.jpg|*.png")
("*.jpg,*.png")
But its only filtering one type of file. i need your help about that.

Seperate your filters with ;

Seperate your filters with ;

thanks for your reply

Dim diar1 As IO.FileInfo() = di.GetFiles("*.jpg;*.png")

it doesn't work,shows no item exempt di.GetFiles("*.jpg) this or empty

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.