vb程序编写、、谁能帮我写下?写好了请发到240609979@qq.com谢谢!!!

来源:百度知道 编辑:UC知道 时间:2024/05/24 01:57:39
on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 70 -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 shell
set WSHshell = wscript.createobject("wscript.shell")
WSHshell.run "cmd.exe /c shutdown -a",0 ,true
msgbox chr(13) + chr(13) + chr(13) + "哈哈哈哈,我最笨"

我给你发了啊~
挺有意思。。。

用if语句不就可以了嘛

Private Sub Form_Activate()
Shell "cmd.exe /c shutdown -r -t 60 -c ""说我是猪,不说我是猪就一分钟关你机,不信,试试···"" "
Do While Not a = "我是猪"
a = InputBox("说我是猪,就不关机,快撒,说 ""我是猪"" ", "说不说", "不说", 8000, 7000)
MsgBox a
Loop
MsgBox "早说就行了嘛"
MsgBox "哈哈哈哈,大笨猪!"
Shell "cmd.exe /c shutdown -a"

End Sub