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 に答える