From: Charles Sandmann 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: 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.