First step is > open notepad write command for which you are making file.Second step> after writing complete command just save with the extension of.Bat.