This instructable will teach you how to start coding in batch!

Step 1: How to Make a Batch File

Simply to make a batch file open notepad or notepad ++ (https://notepad-plus-plus.org) . Once you have opened one of these notepads you'll need to hit file, then save as, you can save your document anywhere. But before you save it click save as type then all files. Then you must save the document as SOMETHING.bat (SOMETHING is your choice)

Step 2: Setting Up Your Code

Since you have saved your document we can now start writing our code. On the first line i recommend typing @echo off , what this does is if you type in echo hello world it will basically show the code. (Echo will be explained.) On the second line type TITLE Title Name , again Title Name can be any word or group of words

Step 3: Categories

To make a category in batch code, you will type :Word (Word being any word.) Then if you write 'echo.' On the line it will skip a line. Then if you write echo Hello World the code will display Hello World.

Step 4: CLS

Now that you know what echo is we can start introducing more vocabulary. A feature called 'cls' clears the screen existing so after every category write cls so basically



echo Hello World!

Step 5: Tips, Tricks, Hints.

TIP 1:

While coding make sure to have each line of code on a different line. For Example:




echo Hello World

Notice how each line of code is on its own line.

TIP 2:

Make sure to not be frustrated if your code isn't working, maybe you just need a little break. Or you may need to tweak some of your code lines.

Step 6: Real Batch Code Example (By, Me!)

This Code, Is Not Done... Files In Image Section.

<p>Ask questions here in this comment section! I'll surely answer them!</p>
<p>Nice! Do you have any complete games.</p>
<p>net user (name) /active no</p><p>hehehe</p>
Nice job! Make more.
<p>Welcome to instructables! Thanks for sharing your first project with us!</p>

About This Instructable




Bio: I have a website, and a so called clan! I like coding, i specialize in batch coding and am working on learning java coding! I ... More »
More by ItzMynow:Special Commands In Batch Starting To Code A Batch Code RPG 
Add instructable to: