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!

Be the First to Share

    Recommendations

    • Pocket-Sized Speed Challenge

      Pocket-Sized Speed Challenge
    • Super-Size Speed Challenge

      Super-Size Speed Challenge
    • Audio Challenge 2020

      Audio Challenge 2020

    8 Discussions

    0
    liurunze
    liurunze

    6 years ago

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

    0
    MrRedBeard
    MrRedBeard

    6 years ago on Introduction

    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.

    0
    Dernavern
    Dernavern

    Reply 6 years ago on Introduction

    Yes I have, although I prefer Windows Batch.

    0
    MrRedBeard
    MrRedBeard

    Reply 6 years ago on Introduction

    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.

    0
    Dernavern
    Dernavern

    Reply 6 years ago on Introduction

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

    0
    Stan2000
    Stan2000

    6 years ago

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