delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/12/21/23:30:11

From: "A. Sinan Unur" <asu1 AT c-o-r-n-e-l-l DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: getenv problem
Date: 22 Dec 2002 04:19:41 GMT
Organization: Cornell University
Lines: 36
Sender: asu1 AT cornell DOT invalid (on pool-141-149-208-64.syr.east.verizon.net)
Message-ID: <Xns92EBED4E4C2C4asu1cornelledu@132.236.56.8>
References: <Xns92EAC413C91D6asu1cornelledu AT 132 DOT 236 DOT 56 DOT 8> <Xns92EAF29123476asu1cornelledu AT 132 DOT 236 DOT 56 DOT 8> <3e04a4de DOT sandmann AT clio DOT rice DOT edu>
NNTP-Posting-Host: pool-141-149-208-64.syr.east.verizon.net
X-Trace: news01.cit.cornell.edu 1040530781 16839 141.149.208.64 (22 Dec 2002 04:19:41 GMT)
X-Complaints-To: usenet AT news01 DOT cit DOT cornell DOT edu
NNTP-Posting-Date: 22 Dec 2002 04:19:41 GMT
User-Agent: Xnews/5.04.25
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Charles Sandmann <sandmann AT clio DOT rice DOT edu> wrote in
news:3e04a4de DOT sandmann AT clio DOT rice DOT edu: 

> On Windows 2000 SP1 
> 
> TEMP=C:\WINNT\TEMP
> TMP=C:\WINNT\TEMP
> 
> (When TEMP is pointed to the system default of c:\docu...\username...)
> 
> If I set TEMP at the command line, that TEMP then goes through.
> 
> So this appears is default behavior on Win2K/XP family (I think I'm
> seeing the same thing as you described).

thank you for checking this out.

i am inclined to think of this as a bug in windows because other system 
environment variables overridden by user variables seem to come through 
OK. also, some users may not have permission to write to 
%SYSTEMROOT%\temp, and a DOS program that needed to write temporary files 
would fail for those users.

for now, i am going to work around this by setting

+TMPDIR=C:\DOCUME~1\%USERNAME%\LOCALS~1\Temp
TEMP=%TMPDIR%
TMP=%TMPDIR%

in djgpp.env.

-- 
A. Sinan Unur
asu1 AT c-o-r-n-e-l-l DOT edu
Remove dashes for address
Spam bait: mailto:uce AT ftc DOT gov

- Raw text -


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