Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!emory!stiatl!tim From: tim@stiatl.UUCP (Tim Porter) Newsgroups: comp.sys.ibm.pc Subject: Re: MS-DOS Environment Variables Summary: Using interrupt 2EH across DOS versions Message-ID: <7900@stiatl.UUCP> Date: 29 Nov 89 21:26:42 GMT References: <5679@wpi.wpi.edu> <1989Nov20.212803.5326@uwasa.fi> <6551@spudge.UUCP> Reply-To: tim@stiatl.UUCP (Tim Porter) Organization: Sales Technologies Inc., "The Little Shop of Horrors..." Lines: 24 In article <6551@spudge.UUCP> thorp@spudge.UUCP (Don Thorp) writes: >The following code will set an environment variable in the highest >environment. I compiled it with tasm and zortech cpp. But there should >be no changes required for MSC or TurboC. The transient portion of >command.com will be loaded. If there is not enough memory to load >command.com, your system will crash. That is one of the side effects of >using interrupt 2Eh. > > Thanks a million. This IS exactly what I needed and it's working wonderfully! But I do have one question. Do you know if the use of this interrupt (2EH) is portable across different versions of DOS? If it is, this could be even better news than what I had initially hoped for. Tim "THE GREATful" Porter -- ******************************************************************************* | Tim Porter gatech!stiatl!tim | | Sales Technologies, Inc Atlanta, GA (404) 841-4000 | *******************************************************************************