Simple Batch Coding Course! [1]

by FlareLikesToCode in Circuits > Computers

191 Views, 0 Favorites, 0 Comments

Simple Batch Coding Course! [1]

download.jpg

Yes, I know. Coding is NOT easy. Not as easy as cleaning up. But then, I discovered batch file coding. Batch file coding is easier than any other coding language. Though not as good as visual scripting, you can create wonders, using a coding language where you get to make text-based pieces of software. All you need is already installed on your computer! But we will be getting a few upgrades before we start.

Supplies

The only software you need is Notepad++ (which you can get here.)

Getting Started

download.png

First of all, you need to download this software known as "Notepad++". You do not necessarily have to get the software, as there is already a Notepad Windows utility. But I recommend using the downloadable software as it will tell us whether it would be a command or not. With all of this out of the way, let the coding commence!

Getting to Know the Commands

The commands are one of my favorite parts. These can be used to trigger something in the program. Here is the list of commands to use for today's instructable.

  • @echo
  • echo
  • echo.
  • pause

@echo - Choose whether or not to display the file location thingy.

echo - Put text on the screen.

echo. - Makes a blank line (recommended)

pause - Freezes the current scene until the user does anthing.

Now that you know the first commands, let's use them!

Personalizing the Look

(for Notepad++) Click "New" to make a new file. Afterward, rename it to however you like! Next, click Language>B>Batch in the top row. I'm done with the blabbering. Let's ACTUALLY start with the coding!

Coding

Type this code into the text editor:

@echo off

echo TEXT

pause

You may edit "TEXT" freely. Now, lets go to the testing!

Testing the Project

cmdinstructable.png

To test it, Ctrl+S to save. Then, track the directory of the file and test it there by double clicking it. You should then see the picture above.

The End!

Thanks for reading this short instructable! This is my first, don't judge me lol. I know a lot about coding. This is targeted for beginners alike. Bai! owo