I use
var foundFiles = aqFileSystem.FindFiles(myDir, *.txt);
where
aqFileSystem.FindFiles(Path, SearchPattern, SearchInSubDirs)
Check it out in the help as to how to iterate through the files! Of course the "SearchPattern" can be "*.*"
Here's the jscript example from the help:
function FileFinder()
{
var foundFiles, aFile;
foundFiles = aqFileSystem.FindFiles("C:\\Work\\", "*.exe");
if (foundFiles != null)
while (foundFiles.HasNext())
{
aFile = foundFiles.Next();
Log.Message(aFile.Name);
}
else
Log.Message("No files were found.");
}
hope that helps
Mark