
[已解決]批處理怎樣批量將文件名小寫字母改為大寫字母后輟名大小寫不變最后由 pcl_test 于 -7-21 22:37以下是hanyeguxing版主的代碼
哪位大大能幫偶修改一下讓它可以達到偶的要求,萬謝啊!??!nclick="copycode($('code0'));">復制代碼
- @echo off&setlocal enabledelayedexpansion
- for /f delims= %%i in ('dir /s/b/a') do (
- set h=%%~nxi&set h=!h: =-!
- for %%j in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) do set h=!h:%%j=%%j!
- ren %%i !h!)

