title: Why I am getting "Echo is on" when trying to print a variable in batch
body: <p>I tring to excute a simple batch file scripts :</p>
  
  <pre><code>echo %1
  set var = %1
  echo %var%
  </code></pre>
  
  <p>When I am running it in XP, it is giving me expected output, but When I am running it in Vista  or windows 7, I am getting "Echo is On" when trying to print (echo) value.</p>
  
  <p>Below is the output of program :</p>
  
  <pre><code>G:\2012&gt;abc.bat 1
  
  G:\2012&gt;echo 1
  1
  
  G:\2012&gt;set var = 1
  
  G:\2012&gt;echo
  ECHO is on.
  
  G:\2012&gt;
  </code></pre>