title: Windows temp directory details (Java)
body: <p>I'm writing a program that needs a generic temp folder. I'm trying to find details about the Windows Temp folders. There are two paths that I know about -</p>
  
  <ol>
  <li><p>In each user directory under AppData\Local\Temp\
  This may change depending Windows version?</p></li>
  <li><p>In the system folder under Temp\ (C:\Windows\Temp)</p></li>
  </ol>
  
  <p>I'm wondering exactly what Windows does to each of these. If Windows deletes files from either location, when does it do so? How can/should I use these directories for my programming?</p>
  
  <p>EDIT: I have a bigger problem actually - Because of a certain engine I'm running indirectly with my program, which uses files I'm creating in a temp directory, I need a temp directory that doesn't use whitespace characters in the path. Java's System.getProperty("java.io.tmpdir") on Windows gives me the temp that's in the user directory, which on XP is under "Documents and Settings..." 
  Not good. Any suggestions? This is why I'm wondering about the C:\Windows\Temp\ directory...</p>