Intro: Starting to Code a Batch Code RPG
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.
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.
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.