delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/12/18/13:45:18

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: 18 Dec 2002 18:30:52 GMT
Organization: Cornell University
Lines: 53
Sender: asu1 AT cornell DOT invalid (on pool-141-149-209-97.syr.east.verizon.net)
Message-ID: <Xns92E88978ADA7Fasu1cornelledu@132.236.56.8>
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> <3e009a55 DOT sandmann AT clio DOT rice DOT edu>
NNTP-Posting-Host: pool-141-149-209-97.syr.east.verizon.net
X-Trace: news01.cit.cornell.edu 1040236252 11552 141.149.209.97 (18 Dec 2002 18:30:52 GMT)
X-Complaints-To: usenet AT news01 DOT cit DOT cornell DOT edu
NNTP-Posting-Date: 18 Dec 2002 18:30:52 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:3e009a55 DOT sandmann AT clio DOT rice DOT edu: 

>> 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 found it in %systemroot%\system32 on my computer.

> I've seen Windows automatically put all sorts of stuff there that only
> is used in DOS sessions.

here are the contents of that file:

@echo off

REM AUTOEXEC.BAT is not used to initialize the MS-DOS environment.
REM AUTOEXEC.NT is used to initialize the MS-DOS environment unless a
REM different startup file is specified in an application's PIF.

REM Install CD ROM extensions
lh %SystemRoot%\system32\mscdexnt.exe

REM Install network redirector (load before dosx.exe)
lh %SystemRoot%\system32\redir

REM Install DPMI support
lh %SystemRoot%\system32\dosx

REM The following line enables Sound Blaster 2.0 support on NTVDM.
<snip>explanation of blaster settings</snip>
SET BLASTER=A220 I5 D1 P330 T3

REM %SystemRoot%\system32\vipx.exe
REM %SystemRoot%\system32\vlmsup.exe

so that seems to be a no go. and config.nt does not contain anything 
relevant either.

any more places i should look?

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