cancel
Showing results for 
Search instead for 
Did you mean: 

Searching for a group of files

Michael_St_Pete
Contributor

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?



Mike

1 REPLY 1
AlexKaras
Community Hero

RE: Searching for a group of files

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.)
Regards,
  /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.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors