@echo off
setlocal enabledelayedexpansion
::这是提前设好的密码
set mm=123456
:a
set j=0123456789abcdefghijlmnopqrstuvwxyz
echo 输入密码:!paw!
choice /n /c !j!
set /a errlevel=!errorlevel!-1
set password=!password!!j:~%errlevel%,1!
set paw=!paw!*
if "!password!"=="!mm!" goto :yes
cls
goto :a
:yes
cls
echo 密码对了!
pause