A Neat Batch File

12K128

Intro: 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:

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:

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

STEP 3:

Then, copy and paste this into the Notepad document:

@echo off
title wait...wut
color a
:loop
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:

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

STEP 6:

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!
HAVE FUN!

8 Comments

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

So……basically it's an endless loop?……
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.
Yes I have, although I prefer Windows Batch.
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.
thanks! I just checked that out and I might try it if I can fit it into my schedule.
You can make it stop after a certain amount of loops, google it it should improve your script
make what stop? the colors?