Batch Programming. in a Batch Window.

Introduction: Batch Programming. in a Batch Window.

About: "Every normal man must be tempted at times to spit upon his hands, hoist the black flag, and begin slitting throats." "a pawn is just a playing piece and even if that pawn becomes a queen it is still just a...

in this instuctable (batch really) imma teach you how to batch program. (this is my first so please be gentle)

Step 1: Download This Batch.

copy this code (i know its long but its the only way i know how to get it on.)

@echo off
color 0c
echo welcome to the basic batch programing.
echo -
echo this batch file is to help you understand and learn batch coding.
echo -
PAUSE
echo -
echo note: any number like this (8) means * and (2) means @
echo -
PAUSE
echo -
echo open notepad.
echo -
PAUSE
echo -
echo now that you have notepad open type in @echo off
echo -
PAUSE
echo -
echo now hit enter. please remember that after a line you must press enter.
echo -
PAUSE
echo -
echo now that you hit enter (im sure your not retarted)
echo -
PAuse
echo -
echo type echo then hit space
echo -
PAUSE
echo -
echo now type "this is my practice batch"
echo -
PAUSE
echo -
echo now that you have done that dont forget to press enter button
echo -
PAUSE
echo -
echo now type echo -
echo -
PAUSE
echo -
echo ok so now type PAUSE
echo -
PAUSE
echo -
echo now im sure your wondering how the text is red. well thats next
echo -
PAUSE
echo -
echo ok so how the text is red is this code color 0c
echo -
echo the number is the background and the letter is the text.
echo -
PAUSE
echo -
echo now imma make the text purple
echo -
PAUSE
color 0d
echo -
echo ok so now i want you to type in color 0a
echo -
echo this will make the text green and the background black
echo -
PAUSE
echo -
echo ok after you do that hit enter and move on
echo -
PAUSE
echo -
msg * welcome to the next level of batch
echo -
PAUSE
echo -
msg * to do this message style box type in msg (8)
echo -
msg * this you dont have to type pause as the next box comes up after the last one is closed.
echo -
msg * ok now type msg (8) into the notepad
echo -
PAUse
echo -
msg * now type in "this is a message from me."
echo -
echo now hit enter and add another PAUSE command at the end.
echo -
PAUSE
echo -
msg * ok so know that you know the basics of cmdprompt click save as
echo -
PAUSE
echo -
msg * ok so now save it as practicebatch.bat TO YOUR DESKTOP
echo -
PAUSE
echo -
msg * thank you for using my instuctable. this was made by life-is-beautiful.
echo -
PAUSE

Step 2: Ok Now to Save

ok now copy into notepad. and then hit save as and then save to your desktop as instuctable.bat
you should get something like this. (dont save into wordpad. wordpad does not support batch codes.)

Step 3: Then Follow the Steps

to help you program a batch.
(if anything is unclear private message me and i will help to as best i can. or give info on a step)

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

    4 Discussions

    0
    admin
    admin

    10 years ago

    Hey, this is a great instructable and is very informative. Just one thing is missing... pictures! It really helps a lot when trying to follow directions so you should consider taking some photographs. Once you do that and leave me a message when you have so that we can publish your work. Thanks! Thanks for the cool instructable and we hope to publish this soon!

    0
    lelolp2
    lelolp2

    Tip 6 months ago

    Very nice Instruction, but you could write the code at least in green and type instead of "PAUSE" you could change the code to "PAUSE>nul". This hides the "press a key to continue" and changes nothing else from the code.

    0
    Craig Bird
    Craig Bird

    9 years ago on Introduction

    This is good but why change * with (8) and (2) for @ The command can easily handle echo-ing these digits without a change

    eg: msg * to type a message simply type msg *
    and to echo @ we just echo @
    no need for the changes but otherwise cool
    happy coding

    0
    life-is-beautiful
    life-is-beautiful

    Reply 6 years ago on Introduction

    i kinow this is a late reply but i was offline for a while forgot about the site and moved to bigger things, but i figured i would do that to make it more clear to the person who is using it to learn, if you dont need it thats fine but i wanted to be clear and precise