Do you have a .bat file that you want to use, or are you trying to write one?
.bat files use DOS commands. Mac OS X can use a wide variety of script languages, but DOS isn't one of them. The file would need to be written (re-written) in a shell script or PERL script or AppleScript, etc.