Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!houxm!whuxl!whuxlm!akgua!gatech!seismo!uwvax!astroatc!nicmad!brown From: brown@nicmad.UUCP Newsgroups: net.micro.pc Subject: Re: accessing DOS disk directory Message-ID: <663@nicmad.UUCP> Date: Fri, 25-Apr-86 20:14:40 EDT Article-I.D.: nicmad.663 Posted: Fri Apr 25 20:14:40 1986 Date-Received: Tue, 13-May-86 02:39:01 EDT References: <1882@wanginst.UUCP> Reply-To: brown@nicmad.UUCP (Mr. Video) Organization: Nicolet Instrument Corp. Madison WI Lines: 23 In article <1882@wanginst.UUCP> marcus@wanginst.UUCP (Bob Marcus) writes: >I would like to access the DOS disk directory from a C program. The >technical reference manual for DOS (3.1) gives the format for directory >entries, but I can't figure out how to access the information. Can >anyone help, please? Basically you just read the sectors that contain the information and then use what is there, according the format you mentioned. Word of caution, don't write to said sectors. Why? When the diskette is read, DOS reads in the directory information. When you change any of the sectors, DOS won't know about them, as the copy in memory isn't changed. When I use Norton's Utilities to play with hard disk directories, I make the DOS read a different sub-directory and then read the one I changed, so DOS will know about the changes. -- ihnp4------\ harvard-\ \ Mr. Video seismo!uwvax!nicmad!brown topaz-/ / decvax------/