Directory.GetFileSystemEntries qestion

  • Thread starter Thread starter Just Me
  • Start date Start date
J

Just Me

I need a
Directory.GetFileSystemEntries
where the search pattern is *.dll;*.exe

That is find all the *.dll and all the *.exe files
I think Directory.GetFileSystemEntries search pattern can not contain more
than 1 pattern. Correct?
Is there a simple way to accomplish that.
I know I can code it but wonder if there isn't a built-in method.


Thanks
 
Just Me said:
Directory.GetFileSystemEntries
where the search pattern is *.dll;*.exe

That is find all the *.dll and all the *.exe files
I think Directory.GetFileSystemEntries search pattern can not contain more
than 1 pattern. Correct?
Is there a simple way to accomplish that.

Make two consecutive calls to 'GetFileSystemEntries', one with the "*.dll"
pattern and one with "*.exe" as pattern.
 

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