title: How to print/echo windows environment variables such as PATH without interpreting variables?
body: <p>Say for example in Control Panel\System and Security\System > Advanced System Settings > System Properties > Advanced Tab > Environment variables...</p>
  
  <p>I have the following PATH:</p>
  
  <p><strong>Value 1:</strong></p>
  
  <pre><code>PATH=%JAVA_HOME%\bin;e:\Groovy\GROOVY~1.0\bin;E:\Python;C:\Users\MyName\AppData\Local\GitHubDesktop\bin;%PYTHON3_HOME%;%GROOVY_HOME%\bin;
  </code></pre>
  
  <p>when in cmd, I do:</p>
  
  <pre><code>echo %PATH%
  </code></pre>
  
  <p>then I get:</p>
  
  <p><strong>Value 2:</strong></p>
  
  <pre><code>E:\Program Files\Java\jdk1.8.0_151\bin;e:\Groovy\GROOVY~1.0\bin;C:\Users\MyName\AppData\Local\GitHubDesktop\bin;E:\Program Files\Python\Python36-32;E:\Program Files (x86)\Groovy\Groovy-2.6.0\bin; 
  </code></pre>
  
  <p>Then what command in cmd will be able to print out same exact PATH values with variable names (%JAVA_HOME% etc.) as from the System Properties (<strong>Value 1</strong>)? </p>