bhoule@se-sd.NCR.COM (Bill Houle) (06/17/89)
Where is the "Current Working Directory" string stored? That is, what $p is expanded to within the DOS prompt. [I'd like to implement some kind of CED-type alias that changes the path slashes ('\' to '/') after every CD.] -- Bill Houle bhoule@se-sd.sandiego.ncr.com NCR SE-San Diego (619) 693-5593
lance@helios (Lance Bresee) (06/19/89)
Current directory is an environment variable....
dixon@sagittarius.crd.ge.com (walt dixon) (06/20/89)
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.
fisher@sc2a.unige.ch (Markus Fischer) (06/26/89)
In article <8015@saturn.ucsc.edu>, lance@helios (Lance Bresee) writes: > Current directory is an environment variable.... nope! this ain't un*x, you know! markus fischer