delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/15/22:00:21

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Remaining enviroment..
Date: Mon, 15 Dec 1997 19:01:53 +0000
Organization: Two pounds of chaos and a pinch of salt
Lines: 19
Message-ID: <34957EA1.5BD3@cs.com>
References: <6739kc$f1$1 AT usenet DOT kreonet DOT re DOT kr>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp246.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

DongJun Kim wrote:
> 
>   I want to remain my enviroment if my program terminated or not.
> I used putenv( "MYPROG=C:/LANG/MYPROG.CFG" ) in my program.
> 
>   But after terminated, it is not in enviroment variables.
> ( I checked it by typing "SET" )

This is not possible under MS-DOS, nor is it possible under the majority
of filesystems.  In most cases, a process cannot permanently modify the
environment of its parent shell.

-- 
---------------------------------------------------------------------
|      John M. Aldrich       | A singer in a smoky room / Smell of  |
|       aka Fighteer I       | wine and cheap perfume / For a smile |
|   mailto:fighteer AT cs DOT com   | they can share the night / It goes   |
| http://www.cs.com/fighteer | on and on and on...                  |
---------------------------------------------------------------------

- Raw text -


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