Introduction: 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.)
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
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!
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
21 Comments
7 years ago
how do u change the "okay" box to something else like "run away"
Reply 8 months ago
make the second quotation say it... for example
x=msgbox("Am i imagining this?" ,4096+64, "Puzzling")
7 years ago
tmw when your school disables saving as .vbs
Reply 6 years ago
if your school has a shared drive then it might work if you save it there it works for me
Yolo Pigeon :)
7 years ago
sweet code
8 years ago on Introduction
How do you activate the script?!
Reply 8 years ago on Introduction
For the one covered in this Instructable, launch the file NOT named "error.vbs", but if you're referring to the one at the end run "startlots.vbs"
8 years ago on Introduction
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.S. I will make an instructable with the file and mention you if that if that is all right
Reply 8 years ago on Introduction
If I recall correctly, all of that should be covered in this Instructable:
https://www.instructables.com/id/The-Ultimate-VBS-Tutorial/
8 years ago on Introduction
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.
9 years ago on Introduction
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.
9 years ago on Introduction
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?
Reply 9 years ago on Introduction
There may be, but I wouldn't be familiar with it. It would most likely be some sort of API interface.
9 years ago on Introduction
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!
Reply 9 years ago on Introduction
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.
10 years 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?
Reply 10 years ago on Introduction
A good way to stop it, is to end it in task manager. Either by the task or its process.
11 years ago on Step 6
good one!
11 years ago on Introduction
Thanks... it was hilarious C=
I'm still laughing LOL thx a lot!
Reply 11 years ago on Introduction
Your very welcome! C=