Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!ll-xn!mit-eddie!bbn!rochester!ritcv!cci632!chiron!jon From: jon@chiron.UUCP (Jon L. Griffeth) Newsgroups: comp.sys.ibm.pc Subject: Re: How do I open() DOS directories? Message-ID: <121@chiron.UUCP> Date: 27 May 88 02:14:04 GMT References: <221@h-three.UUCP> <5631@cup.portal.com> <907@parcvax.Xerox.COM> Organization: Fairport, NY Lines: 12 In article <907@parcvax.Xerox.COM>, leisner@parcvax.Xerox.COM (Martin Leisner) writes: > In article <5631@cup.portal.com> Robert_C_Tellefson@cup.portal.com writes: > >In order to treat directories as files, you need to open them using the > >old FCB (File Control Block) functions. Inconsistent and more > >complicated - but it does work. > > I've tried this and I couldn't get it to work on Dos 3.2. > Can someone please post or send me some code which works if this is possible? I believe I remember reading that you CANNOT open a directory for I/O. The only way to access it is through the "find first" and "find next" system calls. I don't believe it wise to try and get around this.