• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1288
  • Last Modified:

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
0
jra2002
Asked:
jra2002
  • 2
1 Solution
 
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
 
ee_ai_constructCommented:
Question answered by asker or dialog valuable.
Closed, 20 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Admin
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.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now