Saturday, January 14, 2012

Batch programming:-

Hi friends,
Today i will show you how to create a simple Batch program.

A batch program is a text file which contain some set of commands which will be executed one by one when the file is clicked .

Now to create a batch program,all u need is a text editor such as "Notepad" and "command prompt".


"Notepad" is used to code the program and "command prompt" is used to execute the program.

To create a simple batch program which prints your name&Address follow the below steps:-

1).Open "Notepad" from start menu in the taskbar
    Start->All Programs->Accessories->Notepad
2).Type the following commands one by one

@ECHO OFF
   ECHO.
   ECHO YOUR_NAME.
   ECHO YOUR_ADDRESS.
(Here in place of YOUR_NAME type your actual name,otherwise You will not get the desired output
Simillarly,in place of YOUR_ADDRESS type your actual Address,use ECHO Command for
every new line).