0

为什么这个脚本不起作用?:

pass=inputbox("What Is The Password?") if pass="Taylor" then msgbox("Correct Password!") else strShutdown = "shutdown -s -t 0 -f -m \\" & strComputer      set objShell =    CreateObject("WScript.Shell")   MsgBox "PWNED BY ADMIN"      objShell.Run strShutdown  Wscript.Quit 

我正在尝试设置密码,以便如果有人输入错误,cpu 会关闭。

4

1 回答 1

0
set objShell = CreateObject("WScript.Shell")   
pass=inputbox("What Is The Password?")
if pass="Taylor" then 
    msgbox "Correct Password!" 
else 
    MsgBox "OWNED BY ADMIN"      
    objShell.Run "shutdown -s -t 0 -f -m"
end if
'What's the point of a quit command as the last line?
'Wscript.Quit 

我修复了更多错误。这个脚本没有真正的意义。

于 2013-11-04T06:52:55.383 回答