Open up autoexec.bat with notepad.

Cut and paste the following two lines into the autoexec.bat. 

SET TEMP=X:\Folder
SET TMP=X:\Folder

For example SET TEMP=C:\Tempfolder

Make sure that the directories you specified exists and reboot. 

Back to Miscellaneous Tweaks