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.

Recommended Answers

Seperate your filters with ;

Jump to Post

All 3 Replies

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 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.