Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbatt!ihnp4!inuxc!iuvax!bsu-cs!dhesi From: dhesi@bsu-cs.UUCP Newsgroups: comp.sys.ibm.pc Subject: Re: How do you read an MS-DOS directory? Message-ID: <619@bsu-cs.UUCP> Date: Sat, 16-May-87 02:21:58 EDT Article-I.D.: bsu-cs.619 Posted: Sat May 16 02:21:58 1987 Date-Received: Sun, 17-May-87 01:03:47 EDT References: <63@lzaz.ATT.COM> Reply-To: dhesi@bsu-cs.UUCP (Rahul Dhesi) Organization: CS Dept, Ball St U, Muncie, Indiana Lines: 16 In article <63@lzaz.ATT.COM> psc@lzaz.ATT.COM (Paul S. R. Chisholm) writes: >Maybe I'm missing the point, but I can't see any way to read a >directory (or subdirectory) using the DOS functions. The MS-DOS calls FindFirst and FindNext accept an attribute byte and a filename pattern and return the names of all matching files. If the attribute byte is correctly supplied the names will include directories too. One you have the name of a directory, you can then append "*.*" to its name and use FindFirst and FindNext again recursively. These calls will also return some additional information such as file size and date. -- Rahul Dhesi UUCP: {ihnp4,seismo}!{iuvax,pur-ee}!bsu-cs!dhesi