- @echo off&setlocal enabledelayedexpansion
-
- set char=abcdefghijklmnopqrstuvwxyz
- set /p str= "请输入英文字母:"
- set c1=%str:~0,1%
- set c2=%str:~1,1%
-
- for /l %%a in (0,1,25) do (
- set c3=!char:~%%a,1!
- if !c1!==!c3! set start=""
- if defined start set /p= !c3! <nul
- if !c2!==!c3! goto end
-
- )
-
- :end
- pause
复制代码
|