Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!leah!rpi!crdgw1!sagittarius!dixon From: dixon@sagittarius.crd.ge.com (walt dixon) Newsgroups: comp.sys.ibm.pc Subject: Re: prompt $p$g Message-ID: <884@crdgw1.crd.ge.com> Date: 20 Jun 89 12:46:58 GMT References: <1959@se-sd.NCR.COM> <8015@saturn.ucsc.edu> Sender: news@crdgw1.crd.ge.com Reply-To: dixon@sagittarius.crd.ge.com (walt dixon) Organization: General Electric Corp. R&D, Schenectady, NY Lines: 8 I have no experience with DOS 4.x, but in DOS 3.x the current working directory is stored in a data structure known as the current directory structure (CDS). The base address of this structure is contained in the DOS list of lists returned by int 21H ah=52h (undocumented). There is one entry for each possible drive (determined by lastdrive=). The structure is contiguous and indexed by drive number. The DOS i/o system parses this structure when looking for files. Changing it may do bad things to dos.