Ask a Question

Searching for a group of files


Searching for a group of files

How can I do a search for a group of files?  I have tried using the following:

aqFileSystem.Exists(LSS_Data_Dir + DataSetName + ".*")

But that did not work.  I could search for each type of file but the extensions may change.  How can I do this if I do not know what the extension is?


Community Hero

Hi Michael,

Use aqFileSystem.FindFiles() (see "aqFileSystem.FindFiles" help topic for more details) to enumerate the files matching your pattern and then iterate through the returned list to check if the needed file was found. (The referenced help topic contains an exemple of how to do this.)
  /Alex [Community Hero]
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
Showing results for 
Search instead for 
Did you mean: