Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site sphinx.UChicago.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!crsp!gargoyle!sphinx!shor From: shor@sphinx.UChicago.UUCP (Melinda Shore) Newsgroups: net.micro.pc Subject: Re: set environment Message-ID: <228@sphinx.UChicago.UUCP> Date: Wed, 13-Mar-85 18:47:02 EST Article-I.D.: sphinx.228 Posted: Wed Mar 13 18:47:02 1985 Date-Received: Thu, 14-Mar-85 06:22:07 EST References: <1200005@ur-univax.UUCP> Organization: U. Chicago - Computation Center Lines: 22 [] >From: marc@ur-univax.UUCP >The DOS manual talks about adding things to the environment with the SET >ENVIRONMENT command and goes on to say that things in the environment can be >accessed from within an application. Can anyone tell me how to do this or >where it is documented ? Check out the section of the manual on the DOS program segment. Basically, the "environment variables" are strings (both identifiers and values) in memory, the beginning address of which is located at offset 2C of the program segment prefix of the program starting up. When a program starts up, DS and ES point to the program segment prefix. As I recall, DS tells us which segment, ES the address within the segment. -- Melinda Shore University of Chicago Computation Center uucp: ...!ihnp4!gargoyle!sphinx!shor Mailnet: staff.melinda@uchicago.mailnet Bitnet: shor%sphinx@uchicago.bitnet ARPA: staff.melinda%uchicago.mailnet@mit-multics.arpa