How to rename image files in a folder all to .jpg format

Since a recent Win 10 update, the option to open a command prompt in a folder is replaced with open Powershell. But the commands that worked in the command prompt do not work in Powershell. The command I used to us is ren *.* *.jpg. How do I accomplish the same thing using Powershell?

Thank you.



Since you now only have the option to use the PowerShell to change file extensions by batch, here's an example of how you can use PowerShell in replacement of the Command Prompt:

ie. Changing .png to .jpg.

  1. Open the folder where you will change the file extensions by batch. (Note: This will change all the format of the files inside the folder.)
  2. Click the File tab, then Open Windows PowerShell.
  3. Type or copy this:
    Dir *.png | rename-item -newname { [io.path]::ChangeExtension($, "jpg") }
    Note: Make sure that you change ".png" and ".jpg" to the file extensions based on your situation.
  4. Press the Enter key from the keyboard.
  5. Refresh the folder.

Oh, by the way, have you noticed an option to open a Command Prompt from the File tab when you were on Step #2?

We're just a post away should you have further queries.


97 people were helped by this reply


Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.


Question Info

Last updated October 22, 2020 Views 43,372 Applies to: