Introduction: Using Batch Files to Make a Friendly On-Screen Ghost

Hello! This tutorial teaches you how to make a whimsical little ghost on your screen using BATCH programming! Have fun haunting your computer!

Step 1: 1. Open Your Editor

The first thing we need to do in order to begin creating our little pixel friend is to open an editor in which we can write a batch file. You can use either Notepad, or EDIT. I will describe the Notepad Method in this tutorial.

1. Click "Start" .
2. Click on the icon for Notepad, or type "Notepad" into the search bar.

Step 2: 2. Type Some Code

This step may sound daunting, but I promise to make it easy.

Once you have opened Notepad, click in the text editing field and type:

@echo off

This line of code stops the program from enabling certain functions that could prevent it from working.

Now, copy and paste the following into your notepad:

PAUSE
cls
color 0a
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo                                              ************************
echo                  *********           *     I'm A Ghost! Boo!     *
echo                 ***********           ************************
echo               *************            **********
echo               *     *****      *          ******
echo               *     *****      *         ****
echo               *  *******   ***        **
echo               *  *  *****   *  *       *
echo               *  *  *****   *  *
echo               ***************
echo               ***************
echo               ***************
echo               ***************
echo               ***************
echo               ***************
echo               ***************
echo               ***************
echo               ****    ***   ****
echo                 ***   **      ***
echo                   **   *       **
echo                     *           *
echo.
echo.
echo.
echo.
echo.
PAUSE
 









 

 


 


You can change what the ghost says if you want, I used "Hello!" as an example.

You can also change the ghost's color. This program makes a green ghost.
You can alter his color by changing the number and letter that follow the "color" line.


 

 

                                              

 

Step 3: 3. Saving Your Ghost

In order to run this program as a batch file, you need to save it in the batch format.

1. Click on the "File" Button.
2. Navigate to the file called C:\Users\Your Username Here
3. Save The File as "ghost.bat"

It is important that the file ends with ".bat"
It lets the computer know that you have written a batch file.

Now Open Command Prompt by

1. Clicking "Start"
2. Clicking or Searching "Command Prompt"

Step 4: 4. Running Your Ghost!

Note: Your ghost looks a LOT better in full screen, to make him full screen

1. Right click on the command prompt icon.
2. Click on "Properties"
3. Check the Full Screen Option
4. Click Ok.

Now,

1. Type cls and hit Enter
2. Type ghost.bat and hit Enter
3. Press Any Key...


And there is your ghost! You Did it!


Thanks For Reading This Instructable!

Comments

author
Batchcc made it!(author)2015-08-30

https://www.instructables.com/id/Full-screen-batch-matrix/

Full screen batch matrix

author
JamesA19 made it!(author)2015-06-16

to fix the "c:\Users\James\Desktop" thing (different for you) type "echo off" at the start.

Here is the new code:

echo off

PAUSE
cls
color 0a
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo ************************
echo ********* * I'm A Ghost! Boo! *
echo *********** ************************
echo ************* **********
echo * ***** * ******
echo * ***** * ****
echo * ******* *** **
echo * * ***** * * *
echo * * ***** * *
echo ***************
echo ***************
echo ***************
echo ***************
echo ***************
echo ***************
echo ***************
echo ***************
echo **** *** ****
echo *** ** ***
echo ** * **
echo * *
echo.
echo.
echo.
echo.
echo.
PAUSE

author
GreatSage made it!(author)2010-08-09

It might be better if you actually posted the code as text instead of a picture lol. So people could just copy and paste instead of trying to type it out from the picture. Just a friendly suggestion.

author
TheRavenKing made it!(author)2010-08-10

You can now copy/paste. Thanks for the input, it is always good to be able to improve my work.

author
Zillionair1 made it!(author)2010-08-09

I agree

author
bombmaker2 made it!(author)2010-08-09

Me third.

About This Instructable

16,047views

9favorites

Bio: SteamPunk enthusiast, poet, tech fiend, and fantasy lover, The Raven King has a broad range of interests and a taste for the eccentric. The Raven ... More »
More by TheRavenKing:Using Batch Files To Make A Friendly On-Screen Ghost
Add instructable to: