Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!att!cbfsb!cbnewsc!vgopal From: vgopal@cbnewsc.att.com (venu.p.gopal) Newsgroups: comp.os.msdos.programmer Subject: Re: Can I read a subdirectory file ? Summary: FCBs Message-ID: <1990Dec28.174004.12184@cbnewsc.att.com> Date: 28 Dec 90 17:40:04 GMT References: <14237@june.cs.washington.edu> Organization: AT&T Bell Laboratories Lines: 21 In article <14237@june.cs.washington.edu>, fester@wolf.cs.washington.edu (Lea Fester) writes: ! I'd like to read a subdirectory file as a file, but of course DOS ! won't Open a file with the directory attribute set, and neither can ! you change that attribute using the correct DOScall (so I can't > temporarily reset and then set that attribute.) > > Am I forced to go to the FAT to chase down the cluster chain doing I believe you can do this through the use of FCBs (pre 2.00 DOS style) and not through handles. Haven't done this myself, so I am not speaking from experience. I don't know why you need to read the sub-directory as a file (unless you are looking for the specific locations of the files contained) - most things, you can get by by using a combination of the functions: rename file (will move files between directories) create/delete/read/write files create/delete directories Venu P. Gopal UUCP: ..!att!cbnewsc!vgopal Internet: vgopal@cbnewsc.att.com