Under Win98, you can set it in c:\autoexec.bat

TEMP=<temp_path>