title: Stop batch file only processing last file?
body: <p>I have the following simple batch file for renaming *.txt files and removing the first x characters</p>
  
  <pre><code>@Echo Off
  
  for %%i in ("*.txt") do (
    set fname=%%i
    echo %fname%
    copy %fname% %fname:~9%
  )
  </code></pre>
  
  <p>However, it only processes the last file?  If I have 4 files in there, the last file gets copied 4 times as well?</p>
  
  <p>What do I need to do?</p>