title: Does %TEMP% and %TMP% referes different locations for computers running Terminal Service
body: <p>A windows 2000 computer running Terminal Service creates a temporary folder for each terminal session, and it appends the hexadecimal value to the temporary folder name depicted by the environment variable %TEMP%.</p>
  
  <p>Reference</p>
  
  <p><a href="http://support.microsoft.com/kb/243555" rel="nofollow">Terminal Services Temporary Folder Configuration Is Stored in Multiple Registry Locations</a></p>
  
  <p><a href="http://technet.microsoft.com/en-us/library/cc732258%28v=ws.10%29.aspx" rel="nofollow">Temporary Folders</a></p>
  
  <p><a href="http://technet.microsoft.com/en-us/library/cc759190%28v=ws.10%29.aspx" rel="nofollow">Use separate temporary folders for each session</a></p>
  
  <p>My Question is does %TMP% also behaves in the similar manner as %TEMP% or it refers to a different location (the parent directory of %TEMP%).</p>
  
  <p><strong>Note</strong> I know people would tend to say that this question is related to SU but I am trying to use the Environment Variables in my program as a temporary store. So that makes it a programming question. Problem is that as TEMP folder is deleted once the user logs of this creates issues causes services to crash. Ok I understand this is not a good solution to use temporary store but we just looking for a short term solution until we come up with something better.</p>