Introduction: Make a Script Wait for a Certain Time Until Running.

Many instructables for the shutting down a computer prank, make a shortcut to shutdown.exe. This can confuse a user, but eventually they are going to find out that the fake shortcut is the culprit. With this script, you can confuse the user some more!

NOTE: The, non-annoying to your friends or enemies, way to use this would be a reminder script, an automation script, ect.

You will need

Windows 98 or higher
A Computer
Something to automate

Step 1: Open Notepad

The simplest way to open notepad is Run>Notepad
The other option is

Windows 98-2000
Start>Programs>Accessories>Notepad

XP and Up
Start>All Programs>Accessories>Notepad


Step 2: Code

Copy this code into Notepad...

set wshshell = wscript.CreateObject("wscript.shell")

dim Hours
dim Minutes
dim Seconds

Hours = 00
Minutes = 00
Seconds = 00

do
do
do
loop until Hours = Hour(Time)
loop until Minutes = Minute(Time)
loop until Seconds = Second(Time)

wshshell.run "file" 

Step 3: Customizing the Script

By default this script will run at 12 o' clock midnight. In the code, there is a part that says...

Hours = 00
Minutes = 00
Seconds = 00

HOURS
This is what hour the script runs. Its range is 0-23, Midnight to 11 PM

MINUTES
This is what minute the script runs. Its range is 0-59

SECONDS
This is what second the script runs. Its range is 0-59

There's also a part in the code that says

wshshell.run "file"

Where it says file put the name of the file you want to run at the time entered into the script. Make sure that you type the file extention too!

Note: The file must be in the same folder as the script. No subfolders either.

Step 4: File Save As...

Click File>Save As...
Then name this file any name you want, and then add .vbs

Most likely you'll be using this script every time you use your computer. So lets put this script in the startup folder.
After the file is saved, locate it and open

Start>All Programs>Startup

Then right click startup and select Explore then make a shortcut to your script.

Step 5: Test

Be patient for this step. Restart your machine if you put the script in the startup folder (If not, just run the script). Then whenever it is the time you assigned the script to start the file, check your computer and see if what was assigned to run, well umm, runs.

Step 6: Thanks for Reading!

Here's a fake virus that is also for download here , that you can use this with it to prank someone. It makes a bunch of error messages, DOS windows, opens and closes the cd drive, and shuts down the machine. Don't worry it's completely SAFE! The file in the folder that you need to run is startlots.vbs

Comments

About This Instructable

1,464views

4favorites

License:

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 minutesTrack Computer Usage in 2.5 minutesHow to be a MAD Scientist! MU-AH HA HA HA!
Add instructable to: