title: Batch for loop, maybe I'm missing something
body: <p>I know I can do this with Powershell but, well, more as a project to practice my Command Prompt Scripting skills, wanna do it with a batch file.  I have a txt file with ComputerNames, I want my loop to echo the name, then run SystemInfo and grab a particular line from the result.</p>
  
  <p>Computers.txt reads like this:</p>
  
  <pre><code> XPCOMPUTER1
   XPCOMPUTER2
   W7COMPUTER1
   W7COMPUTER2
  </code></pre>
  
  <p>My batch file looks like this:</p>
  
  <pre><code>For /F %%w IN (computer.txt) Do (echo %%w &amp; psexec \\%%w cmd.exe &amp; 
  systeminfo | Find "Total Physical Memory:")
  </code></pre>
  
  <p>Which, should, list the host name, then PSexec into it and run SystemInfo and grab the Total Physical Memory, right? I thought so!  But I get</p>
  
  <pre><code>%%W was unexpected at this time. 
  </code></pre>
  
  <p>Any thoughts?  </p>