Friday, 10 October 2014
How to create a Batch Program-1
How to create a Batch Program
In this tutorial we are going to learn about "How to create a Batch files".
As we said earlier, Batch program can be written using any of the text editor such as Notepad, Notepad++, Word pad etc. But mostly we uses notepad in our programming languages. Lets start our first program with the "Hello World" program.
Step 1:-
Open up a notepad and type the following.
@echo off
Echo Hello World
Pause
Step 2 :-
Save the file with any name whatever you wish, but the file extension of the file must be (.bat). I am going save it with name "first.bat".
Step 3 :-
When you save the batch file, then the icon becomes like:-
Step 4 :-
Now your batch file have been created successfully. just double click on it, After few time you will see command prompt will open with the output Hello World printed on it.It will something like
Step 5 :-
You are done !! Now are able to create a simple hello world program in batch programming.
In the next tutorial we will explain this code in brief.
Subscribe to:
Posts
(
Atom
)