delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/26/23:34:58

Message-ID: <19971027043230.25938.qmail@hotmail.com>
From: "John Patton" <gimli21 AT hotmail DOT com>
To: djgpp AT delorie DOT com
Cc: eliz AT is DOT elta DOT co DOT il
Subject: Re: DOS stuff
Date: Sun, 26 Oct 1997 20:32:29 PST

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

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

- Raw text -


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