windows rename query

Options
km1500
km1500 Posts: 2,375 Forumite
First Anniversary First Post Name Dropper
edited 8 May at 2:32PM in Techie Stuff
I have a lot of WhatsApp images in a folder on my hard drive they are usually named something like 

IMG-20230911-WA0000.jpg

I want to use rename to remove the IMG- from the front

I tried

rename IMG-20*.*  20*.*

but that didn't work

Does anyone know if it can be done?

many thanks

Comments

  • Vitor
    Vitor Posts: 45 Forumite
    Name Dropper First Post
    edited 8 May at 3:19PM
    Options
    PowerShell can batch rename files in the current directory - 
    Dir *.jpg | Rename-Item -NewName { $_.Name -replace '^IMG-','' }
Meet your Ambassadors

Categories

  • All Categories
  • 343.7K Banking & Borrowing
  • 250.2K Reduce Debt & Boost Income
  • 449.9K Spending & Discounts
  • 235.8K Work, Benefits & Business
  • 608.8K Mortgages, Homes & Bills
  • 173.3K Life & Family
  • 248.4K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 15.9K Discuss & Feedback
  • 15.1K Coronavirus Support Boards