Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!mcvax!cernvax!ethz!zu From: zu@ethz.UUCP (Urs Zurbuchen) Newsgroups: comp.sys.ibm.pc Subject: Re: Environment settings from a C program Message-ID: <231@bernina.UUCP> Date: Wed, 28-Oct-87 06:49:02 EST Article-I.D.: bernina.231 Posted: Wed Oct 28 06:49:02 1987 Date-Received: Sat, 31-Oct-87 14:03:14 EST References: <700@hsi.UUCP> <2400@bcsaic.UUCP> <2434@bcsaic.UUCP> Reply-To: zu@bernina.UUCP (Urs Zurbuchen) Organization: ETH Zuerich, CS Department, Switzerland Lines: 15 Keywords: ms-dos environ putenv getenv turboc In article <2434@bcsaic.UUCP> paula@bcsaic.UUCP (Paul Allen) writes: > ... Another poster >described a way to change command.com's environment by following the >chain of parent PSP pointers until you find command.com's. Passing "set >foo=bar" to int 2EH seems considerably easier to me. You forget one thing: Using Int 2Eh you can't set a variable to a string longer than about 120 characters. The exact amount depends on the length of the variablename. You only can execute commands of a total length of 128 (or 127) characters. ...urs UUCP: ...seismo!mcvax!cernvax!ethz!zu