Multiple file extensions

  • Thread starter Thread starter Oterox
  • Start date Start date
O

Oterox

Hi everybody.

How can i select *.jpg and *.gif files from a dir??
I'm using this:
Directory.GetFiles(PathVar, "*.jpg")
but i don't know how to get more extensions than *.jpg

Thank you
 
And if you want 20 extensions or more???
There must be a way to do it in one shot ;-)
 
Good Luck, Loop through a collection of "*.???", or Use Reflection or call
APIs
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top