- @echo off & setlocal
-
- echo q|debug>nul
- >nul (chcp 437&graftabl 936)
-
- echo 选项"1"
- echo 选项"2"
- echo 请按键选择:
-
- (echo e100 CD 16 B4 4C CD 21&echo g&echo q)|debug>nul
- set e=%errorlevel%
-
- cls
- >nul (chcp 437&graftabl 936)
-
- if %e%==49 echo 您按下的是1
- if %e%==50 echo 您按下的是2
-
- pause
复制代码
|