on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 180 -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) + "哈哈哈哈,好乖"
小姐姐我来啦
最新推荐文章于 2025-12-09 16:25:48 发布
这篇博客展示了一个有趣的VBScript代码,通过输入'我爱你'来取消电脑的定时重启。如果不输入,电脑将在一分钟内关机。代码中使用了WScript.Shell对象来执行命令,并通过InputBox交互获取用户输入。

905

被折叠的 条评论
为什么被折叠?



