Instructables

Make a VBS script that opens a bunch of windows.

Picture of Make a VBS script that opens a bunch of windows.
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.)
 
Remove these adsRemove these ads by Signing Up

Step 1: Our sacred basic text editing software.

To type this script we're going to need notepad.
Windows 95-2000
Start>Programs>Acessories>Notepad

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

Picture of Copy this code
dim count
set object = wscript.CreateObject("wscript.shell")

do
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!

Picture of 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

Picture of 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

Picture of 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

CrazyG11 month ago

I accidently came up with a version that never ends and makes the computer lag so much you cant even shut it down normaly.

I will figure out how i did and post the script here.

gigalord141 month ago

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?

Super_Nerd (author)  gigalord141 month ago

There may be, but I wouldn't be familiar with it. It would most likely be some sort of API interface.

MiloR13 months ago

Sorry, but when I open the second file, it only comes up with one window. Is there anyway to fix this?

MY VERSION OF WINDOWS: Windows 8

PLEASE REPLY ANYBODY!

togepi.jpg

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.

Ploopy1 year ago
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?
Super_Nerd (author)  Ploopy1 year ago
A good way to stop it, is to end it in task manager. Either by the task or its process.
ATI4890HD2 years ago
good one!
jodelol2 years ago
Thanks... it was hilarious C=
I'm still laughing LOL thx a lot!
Super_Nerd (author)  jodelol2 years ago
Your very welcome! C=
Sunsun20003 years ago
...