Sorry, I think you've been mis-led. :not_ok:
A .bat file is just a text file, so it can't recognise "anything".
But:
You can usually setup a batch (.bat) file to give instructions to a program when it is starting. Instead of typng a command line instruction every time.
I.e.:
Instead of typing:
c:>Games\Doom\Doom.exe -warp 4 3 -? -?
you could make a batch file called "doom.bat" with the only line in it being the same as the above, and when you wanted to run doom with all of the settings you would normally have to type out (including sound settings), you can just run "doom.bat" instead.

k:
Hint: if you're using DOS, if you don't type the file extension (.exe .com .bat etc..) it autmoatically looks for .bat first, so just typing "doom" would run "doom.bat" instead of "doom.exe".