How To Make A Batch File

In operating systems like Windows and Dos there is a facility called batch file. A batch file is a simple text file which contains a series of command that needs to be executed when you run this batch file. The batch file runs line by line and therefore it executes command of each line. The extension of batch file is .bat in Dos. These batch file are mainly used in Dos. The batch file make the work easier for the user as if some commands are to be repeated again and again then the user can make a batch file of these commands and whenever in need can run the batch file instead of running the whole series of commands. The important thing before that is one should know how to make a batch file which is not a very difficult task to perform. To make a simple batch file one does not need to know high level of programming as the commands used are very simple and easy to understand.

To learn how to make a batch file in Dos one should know the basic commands of Dos as they are compulsory to work further on batch files. The first step is to open the dos in the edit mode and type the name by which you want to make the batch file. The extension of the file should be .bat now after doing this the file is in the edit mode where one can write commands line by line and at the end save them in the batch file. Now the batch file is made and to check it reopen the command prompt and type the name of the file with the extension .bat and press enter, the commands stored in the batch file will execute and give the desired result.

How To Make A Batch File

To make a batch file in windows one needs to open the notepad and write the commands line by line there when it is done then save the file by any name with the extension .bat. Now in windows one does not need to type the command but instead of this click on the file which is required therefore go to the location where the batch file is stored and click on it and it will give the output which is required of the batch file. The task of how to make a batch file is easy to learn and once it is accomplished it makes the work a lot easier and faster.

This entry was posted in Uncategorized. Bookmark the permalink. | Comment

No Responses to How To Make A Batch File

Leave a Reply

Your email address will not be published. Required fields are marked *

*



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>