A filename shortened to fit an old limit still shaped how early PCs started up
In short: AUTOEXEC.BAT was a plain-text file that told DOS which commands to run automatically when a machine started. Its name is a shortened form of a longer phrase, chosen to fit a strict length rule of an early disk file system. Its history shows how technical limits quietly shaped the names and habits of computing.
AUTOEXEC.BAT belonged to DOS-type operating systems. It was a plain-text batch file stored in the top folder of the drive a computer boots from. Its contents were commands that ran on their own at startup, and any command available inside the command interpreter, or as a separate program, could be listed in it. The name abbreviates a phrase meaning automatic execution. The short form was adopted because of the eight-character name and three-character extension limit of the FAT family of file systems.
Every version of DOS read the file when starting, including MS-DOS 7.x, the version found in Windows 95 and Windows 98. After the system booted and the configuration file CONFIG.SYS had been processed, the command-line processor, usually COMMAND.COM, carried out the instructions. Device drivers were normally loaded through CONFIG.SYS, while ordinary programs were started from AUTOEXEC.BAT. Some hardware, such as a mouse, could be set up in either place depending on its maker. In the earliest versions the file was very short.
Early personal computers and XT-class machines typically lacked a clock that kept time on battery power, so the DATE and TIME commands were built into the routine. Machines sold outside the United States often also loaded a keyboard driver for their language layout. Later setups grew large as third-party drivers were added. Typical entries set environment variables for the keyboard, sound card, printer and temporary file locations, and they could start low-level system utilities.
The file's role shifted with later Windows releases. Installing Windows 95 over an existing DOS setup renamed the original files so that both systems could be booted. On Windows NT and its successors, the file used inside the DOS environment is AUTOEXEC.NT, which runs when a DOS program starts rather than during boot. The NT-family systems read the root-folder AUTOEXEC.BAT only at logon, and only for SET and PATH lines that apply to all users. Today that file usually stays empty.
Opens the Intellect+ feed with this card first. Swipe up for the next one.
Sources
- Summary by Intellect · source: AUTOEXEC.BAT
To cite this card, link to https://intellectplus.co.uk/app/technology-autoexec-bat.
How we source, check and correct cards: Editorial standards.
General information, not professional advice. Spotted an error? Flag the card or see corrections and complaints.
Intellect Plus is a visual educational discovery platform for exploring fascinating facts and ideas. Brain Food, Not Brain Rot. What is Intellect Plus?
Related
More in Computing and information technology · More in Technology · Latest · A–Z · All topics