Path: utzoo!dciem!nrcaer!scs!spl1!laidbak!att!pacbell!ames!ll-xn!mit-eddie!uw-beaver!uw-june!uw-entropy!dataio!pilchuck!ssc!happym!polari!rlb From: rlb@polari.UUCP (rlb) Newsgroups: comp.sys.ibm.pc Subject: Re: How do I open() DOS directories? Message-ID: <466@polari.UUCP> Date: 31 May 88 15:59:04 GMT Article-I.D.: polari.466 References: <221@h-three.UUCP> <5631@cup.portal.com> <907@parcvax.Xerox.COM> <6015@cup.portal.com> Organization: Polarserv, Seattle WA Lines: 14 Summary: Ray Duncan: Knows all, tells almost all In article <6015@cup.portal.com>, Robert_C_Tellefson@cup.portal.com writes: > It seems I jumped to an invalid conclusion based on a reasonable > .... As it is, the only way to accomplish this is to use interrupts 25h & > 26h (absolute disk read/write) to get a directory's cluster assignment > and then translate (using the File Allocation Table) to a physical ... I vaguely remember good ol' Ray Duncan (before he became a MicroSoft thug :-) detailing how to do neato directory I/O with FCB functions. Try back issues of Dr. Dobbs (or are you saying this don't work for newer versions of DOS?). I seem to remember that the FCB "open" comes back with a file size of zero, so you have to do FAT calculations to fill in the correct size yerself, then you go do yer I/O and I can't remember whether there's a trick you have to do if you change the physical size of the directory "file". -Ron Burk