@echo off set count = 0 REM REM 设置计数 :redo set /p string=Pass: set /a count = %count% + 1 if "%string%" == "wenwen_soso" goto index REM REM 如果密码匹配则进入index代码块 if %count% == 3 goto quit REM REM 如果尝试次数达到三次则进入quit代码块 goto redo :index echo You got the correct password! ^^_^^ REM REM 验证正确密码的功能区 :quit echo Press any key to continue! pause>nul exit |
|