Introduction: A Neat Batch File

Picture of A Neat Batch File

Hello! this is going to be my first Instructable and I just want to get something out of the way.m I am going to be making several batch files. Windows Batch is a very easy-to-use script language and I WILL NOT be giving you hacking tools. If you have any questions, post them in the comments. Thanks!

Step 1:

Picture of

Here is the first step to creating a simple batch file. This batch file is going to make a rainbow in your Command Prompt window. First, hit the Start button.

Step 2:

Picture of

Then, you will type in the bottom search box the following keyword: "Notepad"
then, the above picture wil pop up.

Step 3:

Picture of

Then, copy and paste this into the Notepad document:

@echo off
title wait...wut
color a
echo derp
color 1a
echo derp
color 2a
echo derp
color 3a
echo derp
color 4a
echo derp
color 5a
echo derp
color 6a
echo derp
color 7a
echo derp
color 8a
echo derp
goto loop

it should look like the picture on this step.

Step 4:

Now, hit File, and then Save As. Name it DERP.bat and BEFORE YOU HIT THE SAVE BUTTON (this is important) click on the bar that says Text File. 

Step 5:

Picture of

After that, click on the thing that drops down and says, All Files. it will look like the picture above. 

Step 6:

Picture of

Now, save it to your desktop. It will look like the icon above this text.

Step 7:

Then, double click it and watch the magic happen!


MidgetCoder (author)2014-01-10

The Entire Aim Of This Batch File Is To Make You Have A Seizure

liurunze (author)2013-12-08

So……basically it's an endless loop?……

MrRedBeard (author)2013-12-03

Haha that's funny. Have you started playing with other scripting languages? If your focus is windows look at what all you can do with powershell or vbscript.

Dernavern (author)MrRedBeard2013-12-04

Yes I have, although I prefer Windows Batch.

MrRedBeard (author)Dernavern2013-12-04

Cool. With your interests in legos, engineering and programming I think you should check out the Blender game engine. You'll get a kick out of it and just to give you an insight someone has already created a watered down version of minecraft with it that's source is freely available.

Dernavern (author)MrRedBeard2013-12-05

thanks! I just checked that out and I might try it if I can fit it into my schedule.

Stan2000 (author)2013-12-03

You can make it stop after a certain amount of loops, google it it should improve your script

Dernavern (author)Stan20002013-12-04

make what stop? the colors?

About This Instructable




Bio: Hello! I am a Christian (free evangelical) and I live in Iowa. I am interested in Legos and engineering. Also, nuclear physics. I also like ... More »
More by Dernavern:A Neat Batch File
Add instructable to: