A batch file is a text file containing a series of commands to be executed by the command interpreter on MS-DOS or Windows operating systems.
A batch file is a text file containing a series of commands, usually saved with file extension .bat
(on both MS-DOS and Windows) or .cmd
(on Windows only).
The commands are executed by the command processor of the operating system:
command.com
on MS-DOS or on MS-DOS-based Windows versions (Windows 3.1, 9x, ME);cmd.exe
on NT-based Windows versions (Windows NT 3.5/4, 2000, XP, Vista, onward); (this features so-called command extensions which are enabled by default; if they are disabled,cmd.exe
is meant to be compatible withcommand.com
, but there are several exceptions;)
Do not use the batch tag for topics about batch-processing files, neither use it for Spring-batch!
References: