title: Rename multiple files in a directory using batch script
body: <p>I have about 1000 images and they have name like "IMG-12223". I want to rename them to 1 2 3 4 ... 1000. How can I do that. I have  written a batch script which list the files but I don't know how to rename each file. e.g. rename first image with name "IMG-12223" to 1 , second image with name "IMG-23441" to 2 and so on ...</p>
  
  <pre><code>for /r %%i in (*) do (
      echo %c% 
  )
  </code></pre>