Tuesday, September 9, 2014

How to create a Batch Program:

Like any other programing languages, lets start our first program with the ‘Hello World’ program.
1. Open up a notepad and type the following.
@echo off
Echo Hello World
pause

2. Save the file with any name you wish, but make sure that you save the file extension with .bat, inthis case I am saving this file as ‘first.bat’.

3. Just double click to execute the batch file that you have created now. And the output looks like,




4. You are done!

No comments:

Post a Comment