3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

VBScripting

VBScripting
VBScript is Visual Basic script (who can work with visual basic is in advantage).
With VBScript you can make for example message box.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Tools

Tools
To start scripting you need to open notepad (start>all programs>accessories>notepad or start>run>notepad)
« Previous StepDownload PDFView All StepsNext Step »
8 comments
Oct 25, 2009. 7:02 PMshoyru_master_11 says:
COOL JUST LIKE PUFFYAMIYUMI.COM!!!!!!!!!!!!!!!!!!!!!
Aug 10, 2009. 8:54 AMShooshting says:
Just incase anyone doesn't know vbscript. Ignore this example and don't try and run. For some reason he wants to show you stupid messages then shut down your computer... how that would help anyone is beyond me. Also the use of a variable before a msgbox is only need when you want take in the response from the message box. You can find much better examples from people who arn't being stupid in your friend Google. VB devs everywhere will die a little inside reading this....
Aug 10, 2009. 9:39 AMPKM says:
Hehe... I'm a VB dev (for some value of the word) and I actually quite like this Instructable. It isn't called "Funniest ever virus prank virus!!!1", and it has some genuinely informational content.

Radobot, I would suggest splitting up step 2 by the different kinds of statement you are explaining, and mention in step 4 that your example is a harmless "virus" prank that shows the use of messageboxes, if statements and shells.
Aug 10, 2009. 10:46 AMShooshting says:
Oh sure it shows how to use a msgbox and the shell run abilities of vbscript.

But you gotta admit, shutting down the users computer ? maybe running notepad would have been somewhat of a better example no ?

A better example would be:

x=msgbox("Oh look a message!",4148,"Antivirus")

If x=vbYes Then
x=msgbox("You pressed Yes",4160,"Antivirus")
End if

y=createobject("wscript.shell")
result = y.run("notepad.exe",1,true)
msgbox "All done, you closed notepad)"

I dunno maybe it's just me but shutting down the pc sounds like such a script kiddy move.
Aug 13, 2009. 9:52 PMshaneomacmcgee says:
And a script that says "You pressed Yes" isnt kiddy?

I think its intended to be somewhat of a prank
Aug 14, 2009. 12:51 AMShooshting says:
Shown as a example that doesn't restart your computer. Take it as you will.

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
5
Followers
2
Author:Radobot