📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

windows rename query

km1500
km1500 Posts: 2,790 Forumite
1,000 Posts Second Anniversary Name Dropper
edited 8 May 2024 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: 783 Forumite
    500 Posts First Anniversary Photogenic Name Dropper
    edited 8 May 2024 at 3:19PM
    PowerShell can batch rename files in the current directory - 
    Dir *.jpg | Rename-Item -NewName { $_.Name -replace '^IMG-','' }
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 351.5K Banking & Borrowing
  • 253.3K Reduce Debt & Boost Income
  • 453.9K Spending & Discounts
  • 244.5K Work, Benefits & Business
  • 599.8K Mortgages, Homes & Bills
  • 177.2K Life & Family
  • 258.1K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.2K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.