怎么写一个VBS文件呀在打开时输入密码呀

来源:百度知道 编辑:UC知道 时间:2024/06/15 08:46:01
这个脚本怎么写呀,我想在脚本运行上做下限制呀有没有方法呀

do
n=inputbox("请输入密码:","提示")
if n=false then wscript.quit
if n<>"123" then
msgbox "密码错误,请重新输入!",16+4096,"错误"
else
msgbox "密码正确!":exit do
end if
loop