Ever want to prank someone with what most people use today? A computer! And of course you do because I don't know a single person who wouldn't. Thats why today we will make a vbs script to open a bunch of error boxes all at once. :) The best part is it won't harm your computer.

You will need
A windows 3.1 or higher computer. (No macs! Macs don't work with vbs scripts)
A victim (Computer obsessive person, annoying coworker, ect.)

Step 1: Our sacred basic text editing software.

To type this script we're going to need notepad.
Windows 95-2000

Windows XP-7
Start>All Programs>Acessories>Notepad

If you see a white box titled Untitled - Notepad, you have my permission to move to the next step.


Step 2: Copy this code

dim count
set object = wscript.CreateObject("wscript.shell")

object.run "error.vbs"
count = count + 1
loop until count = 20

then save this as name.vbs
you can change name to anything you want but it has to end with .vbs

Step 3: Next script!

Open notepad again and copy this  code.

name=msgbox ("Message goes here",0+16,"Title goes here")

Now this time you have to name this specificaly error.vbs or the script will just give you a real error.

Step 4: Lots of Folds

Put these two scripts in a folder. The folder's name doesn't matter. What does matter, is that you can't put one in it's own folder. They both have to be in the same place.

Step 5: Test

Start the script that is not called title.vbs
If 20 error boxes come up then it works
If you get a real error then try recopying the code.

Step 6: Advanced version!

This version is safe too and shuts off your computer. Open the folder and run startlots.vbs Just made this when I wanted to scare my sister. Remember to comment any problems.
                                                                Super_Nerd out

<p>How do you activate the script?!</p>
<p>For the one covered in this Instructable, launch the file NOT named &quot;error.vbs&quot;, but if you're referring to the one at the end run &quot;startlots.vbs&quot;</p>
<p>This is really cool, but is there a way that I could open a certain .vbs (or any other homemade script file extension), make it play a message on a timer and open a .bat file (only once) and close the .vbs file, leaving the .bat open? I see that the opening function is here, I really just need the timer.</p><p>P.S. I will make an instructable with the file and mention you if that if that is all right</p>
<p>If I recall correctly, all of that should be covered in this Instructable:</p><p>http://www.instructables.com/id/The-Ultimate-VBS-Tutorial/</p>
<p>You are making hard that it really was.Can't you create multiple .vbs files then open them all at once?That's my screenshots:</p>
<p>While that is a way to do it, this method is both more efficient on file size (only uses two programs) and also easier to modify. Changing the program that gets launched many times will affect all of the windows opened. If you wanted to make a change on yours, you'd have to change them all. That's not to say your method doesn't work, it's just less efficient.</p>
<p>I accidently came up with a version that never ends and makes the computer lag so much you cant even shut it down normaly. </p><p>I will figure out how i did and post the script here.</p>
<p>It is great and all, but when opened, it opens a few in different places, then the rest accumulate in the bottom-right corner of the screen. Any way it can all appear in different places instead?</p>
<p>There may be, but I wouldn't be familiar with it. It would most likely be some sort of API interface.</p>
<p>Sorry, but when I open the second file, it only comes up with one window. Is there anyway to fix this?</p><p>MY VERSION OF WINDOWS: Windows 8</p><p>PLEASE REPLY ANYBODY!</p>
<p>LOL, switch to Windows 7. I do not know, I recently had a hard drive crash, so I had to switch to Windows 7. I tried this a while ago with Windows 8, and I think it worked fine for me, sorry.</p>
Cool, I opened it and my computer went crazy. Just one thing tough when I got to finish closing all the windows it opened the cd drive was still opening and saying stuff?
A good way to stop it, is to end it in task manager. Either by the task or its process.
good one!
Thanks... it was hilarious C= <br>I'm still laughing LOL thx a lot!
Your very welcome! C=

About This Instructable


7 favorites


Bio: I find a quote from Bill Gates makes a very good description. "Be nice to nerds. Chances are you'll end up working for one."
More by Super_Nerd: Make an assistant for your computer in 5 minutes Track Computer Usage in 2.5 minutes How to be a MAD Scientist! MU-AH HA HA HA!
Add instructable to: