Searching for a group of files
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2010
05:19 AM
06-16-2010
05:19 AM
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2010
08:13 PM
06-16-2010
08:13 PM
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.)
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
================================
/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
================================
