Hi
I have found a suitable solution for you, you can refer to this link. Hope it helps!
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I had a few dozen files that used a naming convention beginning with an abbreviation for a city (in this case, WI) and then an alpha-numeric sequence that was unique to each file. I wanted to rename the files to include the entire city name (in this case, Windsor) without changing the subsequent unique sequences. So I opened command prompt, traced a path to that file, typed in the "dir" command to ensure that I had found the correct folder (I had, the correct files were listed). This is the command that I entered in to change all the file names: ren WI*.* Windsor*.*
After executing that command, the result is that the first file changed names to "Windsor" but eliminated the unique alpha-numeric sequence that followed (I need the alpha-numeric to remain intact) and for every subsequent file, I got the message "A duplicate file name exists, or the file cannot be found." Obviously, I set this up wrong. Can anyone help me with the correct command structure? Thanks...
Chris
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
This worked great for me. Thank you.
Just as an FYI, the following tools make bulk renaming very easy:
https://www.bulkrenameutility.co.uk/
https://learn.microsoft.com/en-us/windows/powertoys/powerrename
This is just a suggestion of what might have happened, did you copy the command into notepad before posting into powershell? Because posting straight from webpage or via word can result in hidden characters causing issues.
I tried the command myself and had no issues.
This worked for me also. Modified in Notepad and used in the Powershell window. Thanks.