Message-ID: <19971027043230.25938.qmail@hotmail.com> From: "John Patton" To: djgpp AT delorie DOT com Cc: eliz AT is DOT elta DOT co DOT il Subject: Re: DOS stuff Content-Type: text/plain Date: Sun, 26 Oct 1997 20:32:29 PST Precedence: bulk >> I would like to be able to set an environment variable in DOS. I would >> like to be able to do this with DJGPP. I would also like to make the >> variable stick, i.e. command.com's environment. How can I set a parent >> process's environment string to new values, specifically command.com, >> using DJGPP? > >You should be able to find various ways of achieving this e.g. by >browsing old issues of Dr Dobb's Journal. This issue was bashed to >death when everybody and their dog were obsessed with hacking DOS. > >> Any suggestions would be greatly appreciated >> because I'll be forced to go back to a 16-bit Borland compiler to make >> this work . > >There's nothing special in DJGPP that affects the solution of your >problem. If you know how to do that with a Borland compiler, you >should have no problems changing it a little so it works in DJGPP. >If you have a working BC code and don't know how to convert it, post >it here. > I will hack what I have and post the BC++ code here in a few days... -Johnny P. ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com