Created
July 16, 2019 20:04
-
-
Save zmej-serow/100caf10ab12dcb7aa94101491cbc6f4 to your computer and use it in GitHub Desktop.
Mass rename in powershell
This file contains 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
# will rename all .jpg files in current directory using 01-NN template (number of digits set by D2 directive) | |
$i=1; get-childitem *.jpg | %{rename-item $_ -newname ('01-{0:D2}.jpg' -f $i++)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment