PowerShell
Public
Rename Images with Counter
Rename JPG images in a folder with a clean numbered filename.
#powershell
#windows
#rename
#images
PowerShell
$counter = 1
Get-ChildItem -Filter *.jpg | ForEach-Object {
$newName = "image-{0:D3}.jpg" -f $counter
Rename-Item -Path $_.FullName -NewName $newName
$counter++
}
Notes
Test file rename scripts in a copied folder first.