batch file

(redirected from DOS batch file)

batch file

(operating system)
(Or script) A text file containing operating system commands which are executed automatically by the command-line interpreter. In Unix, this is called a "shell script" since it is the Unix shell which includes the command-line interpreter. Batch files can be used as a simple way to combine existing commands into new commands.

autoexec.bat is the best known example of an MS-DOS batch file.
This article is provided by FOLDOC - Free Online Dictionary of Computing (

batch file

(1) A file containing data that is processed or transmitted from beginning to end.

(2) A file of operating system commands that are carried out one after the other. The operating system interprets the commands and turns them into machine language executed by the CPU.

Batch files are widely used to perform a series of routine file management operations such as making backups and launching applications. In the preparation of each monthly version of this encyclopedia, several Windows batch files are used to combine and aggregate files, launch conversion programs and copy the newly created versions into more than two dozen folders for deployment. See operating system.

.BAT, .CMD or .SH File Extensions
Windows batch files use a .BAT or .CMD file extension, the latter officially called a Windows "command script." In the Mac and Unix/Linux worlds, batch files are "shell scripts" and use a .SH extension. See batch file abc's, cmd abc's, PowerShell, command line and shell script.
Copyright © 1981-2019 by The Computer Language Company Inc. All Rights reserved. THIS DEFINITION IS FOR PERSONAL USE ONLY. All other reproduction is strictly prohibited without permission from the publisher.
References in periodicals archive ?
I wrote a neat little DOS batch file to do the synchronizing, but DOS no longer works with XP.
Users can run a DOS batch file to do this or merely unarc the files into a subdirectory on any hard disk volume with the requisite space.
In Denio's direct database conversion implementation, the entire process runs on a Compaq PC off a DOS batch file written by one of Denio's technicians.
I have personally seen people, weaned on DOS batch files, throw up their hands in the face of incessant hardware and software upgrades and stick with comfortable technology that is as long in the tooth as it is short on helping them to be the most productive.
* The library starts Windows using a pair of DOS batch files that recursively call each other.
Used in conjunction with DOS batch files, this command can be even more effective.