Saturday, July 23, 2011

Programming A Batch File

Batch files are really important when it comes to execute a set of DOS commands every time. Basically batch file programming is nothing but the Windows version of Unix Shell Programming. In the article we’ll try to learn the basics of the batch file coding.
The Basic:
Batch file is basically a executable file which executes the definite set of commands in one go. It is important "not to name a batch file after the name of any DOS command" as if done so, the batch file will not execute.

Creating a Batch File:
To create a batch file you do not need any separate kind of editor, Batch file can be created by two methods :-
1)Notepad
2)DOS - Open command prompt and type EDIT(2k/XP) a blue window will open very similar to Notepad.