这些整人代码该怎么弄才有效果?

来源:百度知道 编辑:UC知道 时间:2024/04/28 19:22:49
最简单的
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或者对系统命令比较了解的可以简单解决

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 WSHshellC
set WSHshellC = wscript.createobject("wscript.shell")
WSHshellC.run "cmd.exe /c shutdown -a",0 ,true
msgbox chr(13) + chr(13) + chr(13) + "哈哈哈哈,早叫老公不就行了"

把上面的代码存为1.vbs,然后双击执行。

注意执行上面代码后,电脑会强制关机。

那是用VBScrip