Make a script wait for a certain time until running.

Picture of 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
Remove these adsRemove these ads by Signing Up

Step 1: Open Notepad

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

Windows 98-2000

XP and Up
Start>All Programs>Accessories>Notepad

Step 2: Code

Picture of Code
Copy this code into Notepad...

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

dim Hours
dim Minutes
dim Seconds

Hours = 00
Minutes = 00
Seconds = 00

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

wshshell.run "file" 

Step 3: Customizing the Script

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

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

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

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

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