Created
February 19, 2021 19:16
-
-
Save oakwoodgates/61896343eee6e0effbdf5737d8a9639d to your computer and use it in GitHub Desktop.
Command line batch file renaming
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
// All lowercase | |
Dir | Rename-Item -NewName {$_.FullName.ToLower()} | |
// Spaces to hyphens | |
Dir | Rename-Item –NewName { $_.name –replace " ","-" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment