Last active
August 29, 2015 14:04
-
-
Save RoLYroLLs/30fe8db593d6026124e2 to your computer and use it in GitHub Desktop.
A batch script to lowercase all files and directories within the contained directory
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
@echo off | |
setLocal EnableDelayedExpansion | |
for /F "tokens=*" %%I in ('dir /L /B /s') do ( | |
set f=%%I | |
set f=!f:%%~dpI=! | |
ren "%%I" "!f!" | |
echo "%%I" "!f!" | |
) | |
echo "Done!" | |
setLocal DisableDelayedExpansion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment