title: rename files in batch script
body: <p>I have folder with files named:</p>
  
  <pre><code>-backup- powerpoint1.ppt
  -backup- powerpoint2.ppt
  -backup- powerpoint3.ppt
  </code></pre>
  
  <p>I need to rename those files in the same folder to: </p>
  
  <pre><code>powerpoint1.ppt
  powerpoint2.ppt
  powerpoint3.ppt
  </code></pre>
  
  <p>I need a batch script to accomplish that.</p>
  
  <p>I have searched online and came up with this so far but the values are resolving properly:</p>
  
  <pre><code>@echo off
  setlocal EnableDelayedExpansion
  set a=1
  for /f "delims=" %%i in ('dir /b *.pptx') do (
  set "dt=%%i"
  echo.!dt!
   set sh=!dt!
   echo.!sh!
   set "str=%sh:~12,4%"
    echo "%%i" "%str%"
    set /a a+=1
  ) 
  </code></pre>