PDA

View Full Version : Environment variable



NewsArchive
07-04-2012, 12:46 AM
Friedrich (or anyone else not on holiday <g>),

I want to add a value to one of the existing temp environment variable.
The function to add a new variable if it does not exist does not seem
to do what I want and the other two options definitely not!

I want to change the value from:

C:\Windows\Temp

to

C:\Windows\Temp; .\temp

I do not want to use the current temp location as many utilities often
clean this folder.
--

Russ Eggen
RADFusion International, LLC

NewsArchive
07-04-2012, 03:32 AM
Russ,

You really should not do it <g>. This might result in unexpected negative
side effects (caused by folder caching). There are two TEMP directories.
One is C:\Windows\Temp and another is C:\Users\username\AppData\Local\Temp.

You can change the system environment variable from an installer but you
can't change the per-user temporary folder (increased security in Vista+).

For example, use the "Edit Environment Variable (Remove Environment
Variable)" to remove the TEMP system environment variable and then "Edit
Environment Variable (Add Environment Variable and Value)" to re-add TEMP
and a new value.

But did I already mention that you should not do it <g>

Friedrich

NewsArchive
07-05-2012, 12:35 AM
You had me at "should not do it" <g>. Found a better suggestion and
means no changes to the install I already have.

--

Russ Eggen
RADFusion International, LLC

NewsArchive
07-05-2012, 12:35 AM
> You had me at "should not do it" <g>. Found a better suggestion and means
> no changes to the install I already have.

<G> ;-)

Friedrich