delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/12/18/11:15:35

From: Charles Sandmann <sandmann AT clio DOT rice DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: getenv problem
Date: Wed, 18 Dec 2002 09:55:01 CST
Organization: Rice University, Houston TX
Lines: 12
Message-ID: <3e009a55.sandmann@clio.rice.edu>
References: <atkeh5$1fh$1 AT c3p0 DOT cc DOT swin DOT edu DOT au> <Xns92E654D4AD5CAasu1cornelledu AT 132 DOT 236 DOT 56 DOT 8> <Xns92E65C91B405Aasu1cornelledu AT 132 DOT 236 DOT 56 DOT 8>
NNTP-Posting-Host: clio.rice.edu
X-Trace: joe.rice.edu 1040227026 21954 128.42.105.3 (18 Dec 2002 15:57:06 GMT)
X-Complaints-To: abuse AT rice DOT edu
NNTP-Posting-Date: 18 Dec 2002 15:57:06 GMT
X-NewsEditor: ED-1.5.9
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> TEMP=C:\DOCUME~1\asu1\LOCALS~1\Temp
> TMP=C:\DOCUME~1\asu1\LOCALS~1\Temp

> whereas getenv("TEMP") returns c:\windows\temp.

> I am using XP Pro. I do have the v2.03 refresh distribution installed. 
> What might be the reason?

Just a guess, but look at autoexec.nt and see if any environment variables
are set there (it's in %systemroot%\win32\autoexec.nt).  I've seen 
Windows automatically put all sorts of stuff there that only is used
in DOS sessions.

- Raw text -


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