title: batch - echo all variables set IN the batch file
body: <p>Let's suppose that I have this code:</p>
  
  <pre><code>@echo off
  set "var=value"
  echo %var%
  </code></pre>
  
  <p>Now my question is: how to echo all variables set <b>in the file?</b></p>
  
  <p>I know you can do:</p>
  
  <pre><code>set
  </code></pre>
  
  <p>And it will display all variables. It displays:</p>
  
  <pre><code>ALLUSERSPROFILE=C:\ProgramData
  APPDATA=C:\Users\foma\AppData\Roaming
  CommonProgramFiles=C:\Program Files\Common Files
  CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
  CommonProgramW6432=C:\Program Files\Common Files
  ...
  </code></pre>
  
  <p>I want that it displays:</p>
  
  <pre><code>var=value
  </code></pre>
  
  <p>I know I can do <code>set var</code> to display all variables starting with <code>var</code>, but in my case all my variables are "imported" from another batch file, so I don't know how the variable name starts.
  Any ideas?</p>