Board logo

标题: VBS输入正确密码后才能运行下面的代码怎么实现 [打印本页]

作者: 5872169     时间: 2008-12-23 16:00    标题: VBS输入正确密码后才能运行下面的代码怎么实现
VBS输入正确密码后才能运行下面的代码怎么实现??

作者: fy2045     时间: 2008-12-28 18:10
set shell= CreateObject("Wscript.Shell")
password=inputbox("请输入密码")

'假设你的密码是"123"
if password<>"123" then
shell.popup "密码错误,程序退出",1
wscript.quit
end if

'你的代码添加在下面
....
....