Created
August 27, 2016 04:33
-
-
Save hjhjw1991/97f6b8001ac4a44f5777c9956200e68f to your computer and use it in GitHub Desktop.
change upper name to lower one on Windows platforms
This file contains hidden or 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 | |
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