这个还是容易吧:- @echo off&setlocal enabledelayedexpansion
- for %%a in (a-A b-B c-C d-D e-E f-F g-G h-H i-I j-J k-K l-L m-M n-N o-O p-P q-Q r-R s-S t-T u-U v-V w-W x-X y-Y z-Z) do (
- for /f "tokens=1* delims=-" %%b in ("%%a") do set "%%b=%%c"
- )
- set /p str=请输入:
- if "!%str%!" equ "%str%" (
- echo 大写
- ) else (
- echo 小写
- )
- pause>nul
复制代码
|