本帖最后由 pcl_test 于 2015-5-7 00:16 编辑
- @echo off
- set /p password1=<"a.txt"
- :input
- cls
- set /p password2=请输入密码:
- ::if not defined password2 goto input
- if "%password2%" neq "%password1%" echo;对不起,你输入的密码[%password2%]错误!&ping -n 3 0 >nul&goto input
- echo;密码正确
- pause
复制代码
|