System.IO.Directory.GetFiles

Can I get the files from the directory *.jpg and *.png with only one command

System.IO.Directory.GetFiles(directorName & "*.jpg *.png")

Please let me know earliest

Thanks
jra2002Asked:
Who is Participating?
 
ee_ai_constructConnect With a Mentor Commented:
Question answered by asker or dialog valuable.
Closed, 20 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Admin
0
 
andrewpkCommented:
0
 
jra2002Author Commented:
Dear Andrew my problem is I have the string array of the files
If I don't keep the files in the string array then images are displayed in the picture box as distorted.

Being the file array of the string type I can't check the extension
0
 
jra2002Author Commented:
I fixed it
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.