delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/26/10:04:50

Date: Sun, 26 Oct 1997 17:03:04 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: John Patton <gimli21 AT hotmail DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: DOS stuff
In-Reply-To: <19971025031438.9916.qmail@hotmail.com>
Message-ID: <Pine.SUN.3.91.971026170243.17911Q-100000@is>
MIME-Version: 1.0

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 <I cringe>.

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019