Batch files are text files that contain a number of lines,
each being a command as you would run it from a Command
Prompt, plus perhaps a few control statements.
It would be helpful if you told us what you're trying to do
with your batch file.
A batch program is really not any kind of program at all. It's simply a text
file that contains commands.
If you know how to write DOS-type commands, you know how to write a batch
file. Just put the commands in a file and give it a name with the extension
..bat.
The above is perhaps a very slight oversimplification, but as far as getting
started, that's really all you need to know.