Why are there both TMP and TEMP environment variables, and which one is right? (devblogs.microsoft.com) If you snoop around your environment variables, you may notice that there are two variables that propose to specify the location of temporary files. There is one called TMP and another called TEMP. Why two? And if they disagree, then who’s right?