Skip to content

Instantly share code, notes, and snippets.

@hebertluiz
Created January 18, 2019 17:20
Show Gist options
  • Save hebertluiz/692270b0de0c74d752f10362dbd27fb6 to your computer and use it in GitHub Desktop.
Save hebertluiz/692270b0de0c74d752f10362dbd27fb6 to your computer and use it in GitHub Desktop.
File rename batch powershell
# Expecify below the filetype (extension)
# Change the expression {0:D3} to alter the naming scheme
$i=1; Get-ChildItem *.jpg | %{Rename-Item $_ -NewName ('{0:D3}.jpg' -f $i++)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment