It is possible to control where temporary files gets created by setting
TMP environment variable. The file will be created:
TMPenvironment variable if this directory exists.
c:\temp, if the
TMPenvironment variable is not set (or not pointing to a directory) and if this directory exists.
This allows you to determine exactly where the temporary file will be created. This is particularly useful in networked environments where you may not have write access to some directories.