title: an arrow → character getting appeded to files in a .bat script
body: <p>The following script gets all files with .new_tmp extension and copies them to  a file with the same name but without the .new_tmp extension.  In addition a comment is placed at the top of the file and the .new_tmp file is deleted.</p>
  
  <pre><code>echo ^&lt;?php /* &gt; start.tmp
  echo */ ?^&gt; &gt; end.tmp
  for /R "./mydir" %%I in (*.new_tmp) do (
      copy start.tmp+license.txt+end.tmp+%%I worker.tmp
      move worker.tmp %%~pI%%~nI
      del %%I
  )
  </code></pre>
  
  <p>The problem is that a right facing arrow → gets appended to the bottom of all the files</p>
  
  <p>Why is this character getting appended to the end of all the files?</p>
  
  <p>UPDATE
  I tried this with a much simpler example and got the same results</p>
  
  <pre><code>copy NUL worker.tmp
  copy worker.tmp + license.txt + license.txt + license.txt
  </code></pre>
  
  <p>Same problem, an arrow at the end...</p>
  
  <p>I am running under Windows 7</p>