发布网友 发布时间:2024-10-24 02:46
共1个回答
热心网友 时间:2024-11-01 20:35
最简单的
dim WSHshell
set WSHshell = wscript.createobject("wscript.shell")
WSHshell.run "shutdown -r -t 90",0 ,true
复杂一点的在加上点东西
on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 90 -c ""叫老公,不喊就一分钟关你机,不信,试试···"" ",0 ,true
dim a
do while(a <> "老公")
a = inputbox ("叫老公,就不关机,快撒,说 """" ","说不说","不说",8000,7000)
msgbox chr(13) + chr(13) + chr(13) + a,0,"MsgBox"
loop
msgbox chr(13) + chr(13) + chr(13) + "早说就行了嘛"
dim WSHshell
set WSHshell = wscript.createobject("wscript.shell")
WSHshell.run "cmd.exe /c shutdown -a",0 ,true
msgbox chr(13) + chr(13) + chr(13) + "哈哈哈哈,早叫老公不就行了"
这个是弹出一个对话框,他必须在里面输入答案不然电脑重起,如果懂VB或者对系统命令比较了解的可以简单解决
要在复杂的可以做成循环多次的加分我给你代码