title: About "call echo !line:%%foo%%=bar!"
body: <pre><code>for .... do (
      call echo !line:%%foo%%=bar!
  )
  </code></pre>
  
  <p>The code I used in the bat file intended to replace the variable <code>%foo%</code> value to bar.<br>
  But it works to treat <code>%foo%</code> as literal <code>%</code> sign. The same result as command <code>echo !line:%%foo%%=bar!</code>(withtout call)  does. The <code>call</code> command does not work.
  I wonder why it can't work as <code>call echo %%foo%%</code> so that <code>call echo</code> would parse <code>%foo%</code> value after reading the command line from bat file.</p>