How to Make a Simple Batch File
by Peyton_K in Circuits > Electronics
47 Views, 0 Favorites, 0 Comments
How to Make a Simple Batch File

Now, I know that in the past, I have been showcasing many of my batch file programs and I have not been too helpful with many. And alot of the time, they were mundane and short. This Instructable will be an actual tutorial to help make many amazing programs like menus and other programs.
Supplies
Now, in order to make a batch file program, you'll need a computer, preferably Windows 7 ,8 ,8.1 ,and 10
And it HAS to be Windows.
Getting Started
The first step in making batch files is using writing software to put your code in. Notepad is my recommended program to use, but other programs like Notepad++ ect. are much better.
Now that's out of the way, let's begin.
The Basics
To make programs, you'll need to learn how they function. Batch files are simple programs that tell the host computer what to do whether it be displaying text, or doing simple tasks.
The key thing to know are the following commands:
@echo off: Toggles the display of unnecessary text
cls: Clears the screen for new code
echo.: Displays text
pause: Halts the program
If used correctly, it should work.
Notepad

Open Notepad. It can be accessed by right-clicking the desktop and selecting 'New Text Document'. An icon should appear after it's selected. Double click the newly created document. When opened, you can now enter your code.
Code
.jpg)
Copy and paste the following code:
@echo off
title= New batch file
cls
echo. Congrations, you done it!
pause
exit
And save the program as 'example'.bat
End
Congratulations, you have just made a batch file. If you have any questions or comments, feel free to diss at any time!