Skip to content

Instantly share code, notes, and snippets.

@Way
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Way/71aaf36039023a250bba to your computer and use it in GitHub Desktop.
Save Way/71aaf36039023a250bba to your computer and use it in GitHub Desktop.
Batch rename files to lowercase
# Found it here: http://superuser.com/questions/65302/is-there-a-way-to-batch-rename-files-to-lowercase
# Go to the directory and run the following command:
for /f "Tokens=*" %f in ('dir /l/b/a-d') do (rename "%f" "%f")
# Recursive version (added /r to dir):
for /f "Tokens=*" %f in ('dir /l/b/a-d/r') do (rename "%f" "%f")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment