How to Write a Batch File?

A batch file is a series of commands that can be processed as one set. The batch file can be written in any text editor as long as you save the file with a batch extension known as xxxxx.bat.