Re: TEMP vs TMP



On Sun, 28 Aug 2005 19:59:58 GMT, Paul Emmons <pemmons@xxxxxxxxxxxx>
wrote:

>I've heard that two environment variables, TEMP and TMP, should be set
>to one or two subdirectories that can be used for temporary files.
>
>This recommendation goes back many years, as I recall. On my XP
>machine, these two variables have been automatically set to the same
>subdirectory. On an older machine of mine, my autoexec.bat sets TEMP
>to a subdirectory of a RAM disk, and TMP is not set.
>
>Why are there two environment variables for this purpose? Is there
>any difference between them in how various programs use them? What
>can go wrong if one or both of these variables are not set?
>

Programs that have a purely Microsoft linage, TEMP is used. Anything
having Unix in it's history, or in the mindset of its author, is
likely to use TMP. C compilers tend to use TMP because C is the
universal language, and it had its origin with Unix (Unix uses TMP
because C does, not the other way around (I think, but since C was
written for the purpose of writing Unix, the two are intimately and
inseparability intertwined)).

I suspect MS chose TEMP rather than TMP for much the same reason they
chose / instead of - to mark command line switches (that, incidently
is why MS file systems use \ instead of / as directory separators - /
was already taken).

--
T.E.D. (tdavis@xxxxxxxxxxxxxxxxxxxx)
.



Relevant Pages

  • RE: Office 2007 Install Error 2203
    ... I check the locations of tmp in "Advanced Settings/Environment Variables" ... TEMP %HOMEDRIVE%\TEMP ... Since I can't see the actual assignment in the environment variables box ... left over SID from the initial installation of VISTA RC, ...
    (microsoft.public.office.setup)
  • Re: Changing Temp folder
    ... go to Control Panel, System, Advanced tab, Environment Variables button ... You'll see the top half representing TEMP and TMP variables for the ... >>> own drives, so they're aren't taking up space on the system drive. ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: Check the temp enviroment variable
    ... I have see my TEMP and TMP location point to C:/TEMP. ... "Susan Ramlet" wrote: ... It's identified by TEMP or TMP in the environment variables ...
    (microsoft.public.office.misc)
  • Re: Scheduled Tasks
    ... Tmp is what windows programs use and temp is what dos programs use. ... >>read environment variables? ...
    (microsoft.public.windowsxp.newusers)
  • Re: ~WRL "file permission error" loses all of my word in Word
    ... I've done the above, cleared all .temp and .tmp files, cleared the ... Pro and reinstalling the same with all of the endless updates that should ... There is another box below titled "System Variables" that also include TEMP ...
    (microsoft.public.office.misc)