How to filter files based on the extension.

Apr 1, 2016 at 8:48 AM

Currently I am using ZlpFileInfo to get only the excel files from the directory

ZlpFileInfo[] fileEntries = folderPath.GetFiles(".xls");

If I need to get excel, word and powerpoint files how to filter?
Pls help to resolve my query.
Apr 1, 2016 at 9:13 AM
This is the same as with the built-in File methods:

You have to run the GetFiles several times, once for each file extension.