A Neat Batch File

Introduction: A Neat Batch File

About: 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 computer programming and hope to start a business soon!

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!

Share

    Recommendations

    • Tiny Home Contest

      Tiny Home Contest
    • Creative Misuse Contest

      Creative Misuse Contest
    • Fix It! Contest

      Fix It! Contest

    8 Discussions

    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.

    3 replies

    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.

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

    1 reply