Date: Sun, 26 Oct 1997 17:03:04 +0200 (IST) From: Eli Zaretskii To: John Patton cc: djgpp AT delorie DOT com Subject: Re: DOS stuff In-Reply-To: <19971025031438.9916.qmail@hotmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Fri, 24 Oct 1997, John Patton wrote: > 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.