title: "The process tried to write to a nonexistent pipe." bat file
body: <p>I can run on command line this loop:</p>
  
  <pre><code>for /f "tokens=2" %i in ('arp -a ^| Find/i "dynamic"') do echo %i
  </code></pre>
  
  <p>but if I run the same bat file I get:</p>
  
  <pre><code>^C^C^C^Cthe process tried to write to a nonexistent pipe^C^C^C^C^C^C^C^C^
  </code></pre>
  
  <p>C:\1\test.bat:</p>
  
  <pre><code>for /f "tokens=2" %%i in ('arp -a ^ |Find/i "dynamic"') do echo %%i
  </code></pre>
  
  <p>Returned by your arp -a command:</p>
  
  <pre><code>C:\Users\test&gt;arp -a
  Interface: xxx.xx.xxx.40 --- 0xbe
  Internet Address      Physical Address
   xxx.xx.xxx.18           xx-xx-xx-xx-xx-xx     dynamic
   xxx.xx.xxx.26           xx-xx-xx-xx-xx-xx     dynamic
   xxx.xx.xxx.34           xx-xx-xx-xx-xx-xx     dynamic
   xxx.xx.xxx.114          xx-xx-xx-xx-xx-xx     dynamic
  </code></pre>
  
  <p>thanks for any help //Simon</p>