Skip to content

Instantly share code, notes, and snippets.

@hjhjw1991
Created August 27, 2016 04:33
Show Gist options
  • Save hjhjw1991/97f6b8001ac4a44f5777c9956200e68f to your computer and use it in GitHub Desktop.
Save hjhjw1991/97f6b8001ac4a44f5777c9956200e68f to your computer and use it in GitHub Desktop.
change upper name to lower one on Windows platforms
@echo off
title 更改文件名大写为小写
::放在目标文件夹下执行
set dir=%~dp0&call:cdto
for /f "delims=" %%i in ('dir/s/b/ad') do set dir=%%i&call:cdto
pause
exit/b
:cdto
cd /d %dir%
for /f "delims=" %%i in ('dir/b/a-d/l') do ren "%%i" "%%i"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment