Archive: Set TEMP dir from command line


Set TEMP dir from command line
Hello.

I want intall a HL2 MOD Stargate : The Last Stand and it is using NSIS installter.
But installter extract files to disk C: in Temp. But I have low space on C.
How can i change temp dir into D:/Temp from command line ?

For example : D:\>sgtls_beta11_full.exe -TEMP D:/Temp/

Sorry my english.

Thanks for answering.


The TEMP environment variable can be changed in My Computer > Properties > Advanced > Environment Variables. Make sure you put the value back to the way it was when you're done.

Stu


I change it but instater extract files in C:
BTW: Iam using Windows Vista Ultimate x64 SP1 legal


Maybe you need to reboot before the new environment variable is used? Just guessing here.


[win]+[r] cmd.exe[enter]
set tmp=x:\[enter]
set temp=x:\[enter]
c:\somepath\mysetup.exe[enter]