Last active
August 29, 2015 14:02
-
-
Save kenny-evitt/9a5c944febfaf89b44ae to your computer and use it in GitHub Desktop.
PowerShell commands
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
# Prepend 'f ' to all of the files in the current directory with a '.jpg' extension. | |
Dir *.jpg | Rename-Item -NewName { "f " + $_.Name } | |
# Prepend 'f ' to all of the files in the current directory with a '.gif' or '.jpg' extension. | |
Get-ChildItem .\* -Include *.gif, *.jpg | Rename-Item -NewName { "f " + $_.Name } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment