额、、不知在哪里挖的。。
你借鉴一下- @echo off
- >%temp%\s.vbs echo set objpwd=createobject("scriptpw.password")
- >>%temp%\s.vbs echo str=objpwd.getpassword()
- >>%temp%\s.vbs echo wscript.echo str
- echo 请输入密码:
- for /f "tokens=*" %%i in ('cscript /nologo %temp%\s.vbs') do set pass=%%i
- if "%pass%"=="CanyueSmile" (echo 正确:%pass%) else (echo 错误:%pass%)
- del %temp%\s.vbs
- pause
复制代码
|