Last active
January 7, 2020 07:12
-
-
Save yogeshdubey2006/180fbe1c55c7b3dce6e3080512f8bec8 to your computer and use it in GitHub Desktop.
How to remove spaces from file names in bulk using Window platform
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
# Steps: | |
# Open a Powershell (Window). | |
# Go to the folder with the cd command (eg.: cd "path of your folder"). | |
# e.g: cd C:\testFolder | |
# then type below command & replace .jpg file format with your file format. | |
# space is replace with underscore | |
# https://www.dropbox.com/s/4n1kdsfrohjt6tr/20200107_screenshot.jpg?dl=0 | |
get-childitem *.jpg | foreach {rename-item $_ $_.name.replace(" ","_")} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment