Created
July 23, 2021 01:41
-
-
Save sambatlim/6acdd449522878fa05ae7d7bfa5adc04 to your computer and use it in GitHub Desktop.
powershell script to rename multiplle file in folder sort by last write date or time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dir | Sort-Object LastWriteTime | %{Rename-Item $_ -NewName ("photo-{0}.png" -f $nr++)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment