J
John Smith
Hello all:
I am trying to search for more than one extension in a directory at the
same time with the following code:
string[] files = Directory.GetFiles(sDir, "*.doc*.dot");
However, this does not work nor does something like this:
string[] files = Directory.GetFiles(sDir, "*.doc, *.dot");
I can search for each individually but that is rather inefficient. Is
there a way to search for multiple extensions at once?
Thanks,
- John -
I am trying to search for more than one extension in a directory at the
same time with the following code:
string[] files = Directory.GetFiles(sDir, "*.doc*.dot");
However, this does not work nor does something like this:
string[] files = Directory.GetFiles(sDir, "*.doc, *.dot");
I can search for each individually but that is rather inefficient. Is
there a way to search for multiple extensions at once?
Thanks,
- John -