Contents
.JPG to .jpg
To rename all .JPG files to .jpg in a directory using PowerShell, follow these steps:
- Open PowerShell.
- Navigate to the folder containing the
.JPGfiles using thecdcommand. -
Run the following command:
Get-ChildItem -Filter *.JPG | Rename-Item -NewName { $_.Name.ToLower() }
This command will find all files with the .JPG extension and rename them to use the .jpg extension.
.png to .jpg
Get-ChildItem -Filter *.png | Rename-Item -NewName { $_.BaseName + ".jpg" }