speeding up listing files in a directory on Windows PCs

The point being made was that Xojo string comparison is by default case insensitive. If you need to distinguish between upper and lower case, you need to use strcomp().

[quote=255615:@David Andrews]
I did try the MBS example and whilst faster, it was ‘only’ about 50% faster.[/quote]
In your test run, how many files are found and added to the listbox? What are the results when you change .dcm to .xyz so that nothing is found?
If there are a lot of results, you’ll see that the bottleneck is adding the items to the listbox. Not the disk crawling itself.

Ha. I always thought it was case sensitive. Thank you Tim & Peter.

oh my. yes, of course is does. That is the problem with dropping in and out of different languages.

thanks for the reminder