Make a VBS Script That Opens a Bunch of Windows.

About: 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."

Intro: 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

Share

    Recommendations

    • Tiny Home Contest

      Tiny Home Contest
    • Audio Contest 2018

      Audio Contest 2018
    • Furniture Contest 2018

      Furniture Contest 2018

    21 Discussions

    0
    None
    Sola6

    2 years ago

    tmw when your school disables saving as .vbs

    1 reply
    0
    None
    Yolo PigeonSola6

    Reply 11 months ago

    if your school has a shared drive then it might work if you save it there it works for me

    Yolo Pigeon :)

    0
    None
    Yaimir

    2 years ago

    how do u change the "okay" box to something else like "run away"

    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"

    0
    None
    Halphinian

    3 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

    1 reply
    0
    None
    Super_NerdHalphinian

    Reply 3 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/

    0
    None
    Rai5747

    3 years ago on Introduction

    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:

    uujjj.JPGyj7j7j.JPG
    1 reply
    0
    None
    Super_NerdRai5747

    Reply 3 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.

    0
    None
    CrazyG1

    3 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.

    0
    None
    gigalord14

    3 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?

    1 reply
    0
    None
    Super_Nerdgigalord14

    Reply 3 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.

    0
    None
    MiloR1

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

    togepi.jpg
    1 reply
    0
    None
    VallexKotenMiloR1

    Reply 3 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.

    0
    None
    Ploopy

    5 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?

    1 reply
    0
    None
    Super_NerdPloopy

    Reply 5 years ago on Introduction

    A good way to stop it, is to end it in task manager. Either by the task or its process.