Mail Archives: djgpp/2002/12/17/05:45:21
"A. Sinan Unur" <asu1 AT c-o-r-n-e-l-l DOT edu> wrote:
> I posted the above code in response to another problem. After posting, I
> noticed that the string getenv returns for TEMP does not match the value
> of TEMP on my system. Typing set shows:
>
> 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?
Right click on "My computer" on your desktop, then "properties",
"extended" (or what else is it in English? I have the German WinXP),
"environment variables".
There I (logged in with admin rights) see two sets of variables:
User variables and system variables.
"TEMP=C:\DOCUME~1\asu1\LOCALS~1\Temp" comes from the user variables.
"TEMP=c:\windows\temp" comes from the system variables.
If I open a command prompt, I get the "user" temp.
But if the djgpp program opens a new process, what variables does this
get??? I don't know! And I myself would like to be a little bit more
enlighted in this respect...
Regards,
--
email me: change "nospam" to "w.hennings"
Dipl.-Ing.(=M.Sc.Eng.) Wilfried Hennings c./o.
Forschungszentrum (Research Center) Juelich GmbH, MUT
<http://www.fz-juelich.de/mut/index_e.html>
All opinions mentioned are strictly my own, not my employer's.
- Raw text -