Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site ecn-pc.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!ihnp4!inuxc!pur-ee!ecn-pc!langet From: langet@ecn-pc.UUCP (Timothy Lange) Newsgroups: net.micro.pc Subject: Reading DOS directories. Message-ID: <407@ecn-pc.UUCP> Date: Wed, 23-Oct-85 15:37:35 EDT Article-I.D.: ecn-pc.407 Posted: Wed Oct 23 15:37:35 1985 Date-Received: Thu, 24-Oct-85 20:12:35 EDT Reply-To: langet@pur-ee.UUCP (Timothy Lange) Organization: Engineering Administration, Purdue University Lines: 19 Hi! I am trying to get an assembler program running that will read the entries in a sub-directory. I am running on an IBM PC/XT that is using DOS 2.1. I have set up an extended FCB with the attribute byte set for system+readonly+directory permission. The DOS Technical manual says this will allow directories to be accessed. I am using function 0F to open the directory FCB after I stick the directory name in the name field. After opening, it gets the date of the directory stored and no errors are returned. I set the record size to 32 bytes and the current block and record to zero, I then try to read the directory file with function 14 but get error code for no data read. Anybody got any suggestions or pointers to help me figure out what I am doing wrong? Thanks in advance for all help. -- Tim Lange Engineering Business Offices 317-494-5338 Rm 120 Engineering Administration Bldg. Purdue University West Lafayette, IN 47907 {decvax|harpo|ihnp4|inuxc|seismo|ucbvax}!pur-ee!langet