Skip to content

Instantly share code, notes, and snippets.

@yogeshdubey2006
Last active January 7, 2020 07:12
Show Gist options
  • Save yogeshdubey2006/180fbe1c55c7b3dce6e3080512f8bec8 to your computer and use it in GitHub Desktop.
Save yogeshdubey2006/180fbe1c55c7b3dce6e3080512f8bec8 to your computer and use it in GitHub Desktop.
How to remove spaces from file names in bulk using Window platform
# 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