Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!gaia!cook From: cook@gaia.UUCP (Forrest Cook) Newsgroups: comp.os.cpm Subject: BDOS Function: Search For Next Message-ID: <329@gaia.UUCP> Date: Thu, 10-Sep-87 14:52:05 EDT Article-I.D.: gaia.329 Posted: Thu Sep 10 14:52:05 1987 Date-Received: Sat, 12-Sep-87 10:03:05 EDT Organization: Gaia Corp, Boulder, CO Lines: 15 Keywords: Not Returning Next Does anybody out there have any experience with the CP/M bdos calls Search for First and Search for Next? I am working on a program that needs to read every file off of a cp/m disk. I set the file name in the FCB to ????????.???. Search for First is called, and returns with the FCB pointing to the first file on the disk. The first file is opened, read, and closed successfully. Search for Next returns with file not found. (There are more files). If I set the FCB to ????????.??? before doing the Search for Next, The function returns with the first file again. It seems like I am doing something wrong with the FCB. Any Suggesstions? Forrest Cook