Re: %temp% points to %systemroot%\temp instead of %userprofile%\LocalS~1\temp
From: Pegasus \(MVP\) (I.can_at_fly.com)
Date: 03/28/05
- Next message: Rodkey: "Drive by spyware installs"
- Previous message: Galen: "Re: cd-rom desktop icon disappeared."
- In reply to: Gordon Fecyk: "Re: %temp% points to %systemroot%\temp instead of %userprofile%\LocalS~1\temp"
- Next in thread: Gordon Fecyk: "Re: %temp% points to %systemroot%\temp instead of %userprofile%\LocalS~1\temp"
- Reply: Gordon Fecyk: "Re: %temp% points to %systemroot%\temp instead of %userprofile%\LocalS~1\temp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 28 Mar 2005 10:33:54 +1000
What you write sounds fine but is at variance with
my own WinXP Professional installation.
When I use the recommended method of setting the
user's %temp% variable to c:\ABCXYZ (i.e. via Control
Panel / System etc), and when I then invoke a 16-bit
application (e.g. command.com) then the temp variable is
set to c:\ABCXYZ. This happens without me touching
autoexecec.nt. The value of the System %temp% variable
was set to c:\Temp.
"Gordon Fecyk" <gordonf@pan-am.ca> wrote in message
news:eEPZsuxMFHA.2420@TK2MSFTNGP12.phx.gbl...
> > This is not the correct way to set environmental variables
> > under Windows 2000.
>
> We're talking about XP. KB840214 fixes this problem in Win2K.
>
> We're also talking about the 16-bit environment (NTVDM) which, for reasons
> unknown to me, uses a different environment from the rest of the system.
>
> The 16-bit environment ignores %temp% and %tmp% set in the per-user
> environment variable settings (control panel / system) and instead uses
the
> per-system environment for that. You can alter the 16-bit environment
> separately from the 32-bit environment by manipulating autoexec.nt, which
is
> not covered anywhere in Help. In fact, it's covered in KB314495:
>
> "Any environment variables required by the [16-bit] Windows-based program
> should be located in the Autoexec.nt file; if they are, Windows will use
> them appropriately."
>
> Any environment variables except for %temp% and %tmp%, apparently.
>
> You can even try changing %temp% after the fact, for example in
command.com
> (set temp=whatever), and the change will appear to take (the changed
setting
> appears if you type 'set' by itself). But apps launched from there still
> ignore it, writing temp files to %systemroot%\temp.
>
> --
> PGP key (0x0AFA039E): <http://www.pan-am.ca/consulting@pan-am.ca.asc>
> Prevent problems before they happen and help others avoid bad design.
> <http://www.pan-am.ca/antiwindowscatalog/>
>
>
- Next message: Rodkey: "Drive by spyware installs"
- Previous message: Galen: "Re: cd-rom desktop icon disappeared."
- In reply to: Gordon Fecyk: "Re: %temp% points to %systemroot%\temp instead of %userprofile%\LocalS~1\temp"
- Next in thread: Gordon Fecyk: "Re: %temp% points to %systemroot%\temp instead of %userprofile%\LocalS~1\temp"
- Reply: Gordon Fecyk: "Re: %temp% points to %systemroot%\temp instead of %userprofile%\LocalS~1\temp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|