Windows 10 How to rename files sequentially at a number other than 1

  • Thread starter Thread starter StLOrca
  • Start date Start date
S

StLOrca

Hey gang,


I've got a bunch of files (~300) that need to be renamed sequentially. I used the F2 command to change the names from "image1.png" to "M00000(1).png", etc. Is there a switch or something in PowerShell or the command prompt to start at a number other than 1 and remove the parentheses? In this case, I need them to start at "M000214.png".


I know the PowerShell command is supposed to start with this: dir | Rename-Item -NewName {$_.name replace "M?????" ""}, but my Google-fu has failed me after that. Can any of you fabulously good-looking, ridiculously smart folks help me out?


Thanks in advance!

Continue reading...
 
Back
Top