summaryrefslogtreecommitdiff
path: root/winscripts/bulk_rename_by_date_created.ps1
blob: 0f5ff3bc350b98b4f4406fac6252119271cfa2e0 (plain)
1
2
3
4
$count = 1
Get-ChildItem -Path 'C:\Users\Jay Jones\Desktop\Screenshots\phase1\*' -Include *.jpg,*.png -File |
Sort-Object CreationTime |
Rename-Item -NewName { 'ngimg-{0:D4}{1}' -f $script:count++, $_.Extension }