title: When does System.getProperty("java.io.tmpdir") return "c:\temp"
body: <p>Just curious as to when <code>System.getProperty("java.io.tmpdir")</code> returns <code>"c:\temp"</code>.  According to the <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html" rel="noreferrer">java.io.File</a> <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html" rel="noreferrer">Java Docs</a>- </p>
  
  <blockquote>
    <p>The default temporary-file directory is specified by the system property java.io.tmpdir. On UNIX systems the default value of this property is typically "/tmp" or "/var/tmp"; on Microsoft Windows systems it is typically "c:\temp". A different value may be given to this system property when the Java virtual machine is invoked, but programmatic changes to this property are not guaranteed to have any effect upon the the temporary directory used by this method.</p>
  </blockquote>
  
  <p>But in my case- </p>
  
  <pre><code>System.out.println(System.getProperty("java.io.tmpdir"));
  </code></pre>
  
  <p>Always returns-</p>
  
  <pre><code>C:\Users\admin\AppData\Local\Temp\ i.e. %TEMP%
  </code></pre>
  
  <p>In what conditions will it return <code>"c:\temp"</code>? </p>
  
  <p>EDITED: If I change %TEMP% to C:\Temp then I will get C:\Temp, right? But the documentation shows c:\Temp instead of C:\Temp. </p>