Article View: comp.os.msdos.programmer
Article #4059Re: Can I read a subdirectory file ?
From: venu.p.gopal
Date: Fri, 28 Dec 1990 17:40
Date: Fri, 28 Dec 1990 17:40
21 lines
1408 bytes
1408 bytes
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
Technical Details
Message-ID:
<1990Dec28.174004.12184@cbnewsc.att.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!att!cbfsb!cbnewsc!vgopalReferences:
<14237@june.cs.washington.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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