text file containing a series of commands intended to be executed .
MSDOS batch file is a text file of commands that is run in the shell. The shell understands the commands and then runs the file.
here is a example of one:
REM ECHO OFF prevents the printing of each command to standard output.
@ECHO OFF
REM ECHO. prints a blank line.
ECHO.
ECHO Hello World, press any key to start APROGRAM.EXE!
PAUSE > NUL
REM The first argument to the batch file can be referenced with "%1"
APROGRAM.EXE %1
IF ERRORLEVEL 1 GOTO error
ECHO.
ECHO APROGRAM has finished whatever it was doing.
GOTO end
:error
ECHO.
ECHO Something went wrong with AProgram.
:end
what it does it gives you the ability to create programs that can talk to the OS at a very low level like delete files, virus check, you can make system type programs with it.
The shell is COMMAND.COM also known as cmd.exe if you run this, it would open the shell, shell means the OS command prompt where your commands would heard by the os this is just towards system type stuff like directory look up ect. It can also be an installer ect.