title: Unable to set value to a variable in windows cmd
body: <p>I'm unable to set the value of variable <code>foo</code>.The script is as follows:</p>
  
  <pre><code>@echo off
  set foo = %1
  echo %foo%
  </code></pre>
  
  <p>I'm getting this as an output:</p>
  
  <pre><code>ECHO is off
  </code></pre>
  
  <p>Can anyone tell me what am I doing wrong?</p>