Skip to content

Instantly share code, notes, and snippets.

@LiamHz
Created February 27, 2019 23:49
Show Gist options
  • Save LiamHz/87b67de6a5b4d03ac882b7b47a82b25b to your computer and use it in GitHub Desktop.
Save LiamHz/87b67de6a5b4d03ac882b7b47a82b25b to your computer and use it in GitHub Desktop.
# Base length subtraction has to subtract file extension then re-add after
Dir | Rename-Item -NewName {$_.name.substring(3,$_.BaseName.length-4) + '.png'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment