VBS高手帮我完善

来源:百度知道 编辑:UC知道 时间:2024/09/20 03:55:41
就是不说那四个字自动重启的```可是我怎么也不能重启啊(我菜鸟一个)

on error resume next
dim WSHshellA
const pass="我好白痴"
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run("shutdown -r -t 60 -c"),,ture
dim a
do
a=inputbox("小子,快说“我好白痴”....","说不说","不说")
if a=pass then
msgbox("!")
exit do
else
msgbox("丫的快说!")
end if
loop
dim WSHshell
set WSHshell = wscript.createobject("wscrip.shell")
WSHshell.run("shutdown -a"),,true
msgbox("?")

dim WSHshell
const pass="我好白痴"
set WSHshell = wscript.createobject("wscript.shell")
WSHshell.run "shutdown -r -t 600 ",ture
dim a
do
a=inputbox("小子,快说“我好白痴”....","说不说","不说")
if a=pass then
exit do
else
msgbox("丫的快说!")
end if
loop
WSHshell.run "shutdown -a",true
msgbox "取消关机了",0,"恭喜你"