I have made two interesting vbs games to share with you.

Source: Internet
Author: User
On error resume next
Dim WSHshellA
Set WSHshellA = wscript. createobject ("wscript. shell ")
WSHshellA. run "cmd.exe/c shutdown-r-t 600-c" "said you are my wife. If you don't shut down your computer for ten minutes, you can wait for ten minutes! · "", 0, true
Dim
Do while (a <> "I'm your wife ")
A = inputbox ("if you are my wife, don't shut down. Come on, say" "I'm your wife" "," Don't say "," Don't say)
Msgbox chr (13) + chr (13) + "Haha, dear wife, I love you! ", 0," MsgBox"
Loop
Msgbox chr (13) + chr (13) + "Haha, hey! Just say it! "
WSHshellA. run "cmd.exe/c shutdown-a", 0, true
Msgbox chr (13) + chr (13) + "haha! My wife, I love you! "
Set WSHshellA = nothing

The following is the exit dialog box and the program to exit shutdown: on error resume next
Dim WSHshellwwq
Set WSHshellwwq = wscript. createobject ("wscript. shell ")
WSHshellwwq. run "cmd.exe/c shutdown/a", 0, true
WSHshellwwq. run "cmd.exe/c wmic process where name =" "wscript.exe" "call terminate", 0, true
Set WSHshellwwq = nothing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.