Introduction: Batch Matrix Shutdown Screen

I always hate the boring old shutdown sequence on my computer, so I made this simple batch file to make it a lot cooler! (This is my first Instructable, so cut me some slack, please.) You can impress your friends with this cool matrix stile shutdown sequence.

Update - July 09, 2009 - Thank You BlaXpirit for helping me make the code significantly smaller.

This is what it will look like:

Step 1: Create a Batch File

The first step is to create a Batch File:

1.Right click on your desktop and select New.

2.Click on the Text Document option.

3.When the Text Document icon pops up, change the name to (Matrix)*.bat

*The word Matrix in the parenthesis can be substituted with anything you want. Don't actually type the *.

Step 2: The Code

The next step is to type the code I give you:

1.To edit the BATCH file you made, you right click it and select Edit from the list. This opens up Notepad/Wordpad to edit it.

2.Type or paste this code I give you between the lines, then save:
................................................................................................................................................................................
@echo off
color 2
title Matrix, I HAVE YOU, ESCAPE IS IMPOSSIBLE
echo I Will Now Execute Command, 3hgw5th6p.exe, in 9 seconds. Your Program Files Are History!
timeout 9
set loopvar=1
:looplabel
set /a loopvar=%loopvar%+1
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
if '%loopvar%'=='500' goto endlabel
goto looplabel
:endlabel
shutdown -s -f -t 15 -c "I, Matrix, Declare Victory Over Computer 235.6274.837Gh"
exit
............................................................................................................................................................................
This Command:
@echo off
Tells the computer that you don't want it to display the command words such as "echo" or "title".

This is the color of the words:
color 2
The number 2 can be changed to any of the number/letters at this link: http://www.codeproject.com/KB/recipes/BatchFileColors.aspx

These are the words that are shown on the bar at the top of the screen:
title Matrix, I HAVE YOU, ESCAPE IS IMPOSSIBLE
They can be changed to whatever you want, just it must begin with the word title.

This Command:
Echo I Will Now Execute Command, 3hgw5th6p.exe, in 9 seconds. Your Program Files Are History!
Tells the computer to display whatever is after the word "echo". Any of the words/numbers after the
word "echo can be changed to whatever you want.

This Command,
Timeout 9
Tells the computer to display the number nine then count down the seconds until zero before
continuing. The 9 can be changed to any other number.

The Line:
set loopvar=1
Creates the variable "loopvar" than gives it a denomination of 1.

The Next Line:
:looplabel
Names a point in the script that can be gone back to using the "GoTo" command.

This Command:
set /a loopvar=%loopvar%+1
Tells the computer that every time this part of the script is replayed, it adds one to the variable "loopvar" so once the computer has replayed it 20 times, "loopvar" = 21.

These Lines:
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
Tell the computer to display on the screen a random number.

These Lines:
if '%loopvar%'=='500' goto endlabel
goto looplabel
Is an if/then statement and tells the computer: If the variable "loopvar" equals 500 then move on
to "endlabel" if it does not then jump back up to "looplabel" until "loopvar" equals 500. The number
500 can be changed to any other number, it decides how many times the "echo %random%" is
repeated.

This Command:
endlabel:
Is another jump to point for the "GoTo" statement.

These Lines:
shutdown -s -f -t 15 -c "I, Matrix, Declare Victory Over Computer 235.6274.837Gh"
exit
Tell the computer to start shutting down (shutdown -s -f) after 15 seconds (-t 15) and display a
dalogue box that says "I, Matrix, Declare Victory Over Computer 235.6274.837Gh" (-c "I, Matrix,
Declare Victory Over Computer 235.6274.837Gh") then end the batch file. The -s(Shutdown
command) at the end of the code can be replaced with -l(Log off command) or -r(Restart
command). The numbers after the -t can be replaced by any number. They tell you how long you
have until your computer shuts down. The words in "" after the -c can be replaced with anything.
They make up the message that the computer will tell you.

Step 3: Run It

Now that your done show your friends your cool shutdown screen! They will be very jealous and be dieing for you to show them how to get it! (Or maybe not)


If you want to make the program full sized then:

1. Right click on the top bar of the program and select Layout.

2.Set the Height and Width of the window to 300.