I'm trying to write so code that accepts an ambiguous file specifier
then for each matched file do something with it.
My code creates an anbiguous FCB (not at 5CH) and then calls BDOS function
17 (dec) Search for First dir. entry, creates a new second FCB for the
found file and then processes the file. The code then loops
on BDOS function 18 (dec) Search for next, doing the same with each
returned directory entry.
If my program simply displays the name of the file returned, all is well
and I have a simple 'DIR' program. However if the program does any disk
access to the file then the search next function seems to repeatedly
return the first entry - it never moves on. Is this a known BDOS
problem ? Do I have to loop and preserve the returned file details,
and use the list to do the processing after the directory has been
scanned 'without interuption'?