Skip to content

Instantly share code, notes, and snippets.

View JeroenSteen's full-sized avatar

Jeroen JeroenSteen

View GitHub Profile
@kabilashgit
kabilashgit / file-rename-lowercase.md
Last active April 29, 2024 16:03
rename all files to lower-case in windows

Rename all files in the directory to lowercase

open command line in that direct and run the following command

for /f "Tokens=*" %f in ('dir /l/b/a-d') do (rename "%f" "%f")

replace all subfolder files to lowercase

for /f "Tokens=*" %g in ('dir /b') do (for /f "Tokens=*" %f in ('dir %~fg /l /b /a-d') do (rename "%~fg\%f" "%f"))