本帖最后由 wutarnow 于 2015-10-20 15:00 编辑
- @echo off
- setlocal enabledelayedexpansion
- set /p ch=按字母顺序输入两个字母:
- set result=这两个字母中间是:
- set table=a b c d e f g h i j k o m n o p q r s t u v w x y z
- for %%I in (%table%) do (
- if /i %%I GTR %ch:~1,1% goto Finish
- if /i %%I GEQ %ch:~,1% set result=!result! %%I
- )
- :Finish
- echo %result%
复制代码
|