The USR ScanFolder (recursive) example in FB 4.4 shows the same problem. It gets to the 32768th file and starts over from the beginning and runs forever, never exiting the do until loop. On Jan 15, 2009, at 8:20 AM, Steve wrote: > Hello, > > I am having an issue when scanning a folder that has more than 32767 > files in it. The code is derived from the FN IterateFolder using > USR SCANFOLDER in many examples posted on this list. I place the > filenames into an INDEX$. > > Does anyone have any experience with this. I have checked to ensure > that I am using all LONG integers in my code, but it comes to a > crawl after hitting this wall. > > Any help would be greatly appreciated. > > > ~ steve >