The Autoexec.bat is what's known as a DOS batch file.
All batch files have the extension *.bat. You can create your own batch files with any
text editor. It's simply a list of typed DOS commands that are carried out 1 line at a
time. The Autoexec.bat is special because it's the only *.bat file that automatically runs
at the start of DOS.
This is what a basic Autoexec.bat file looks like but
yours may be different:
@ECHO OFF
PROMPT $p
SET SOUND=C:\VIBRA16
SET BLASTER=A220 I5 D1 H5 P330 T6
SET MIDI=SYNTH:1 MAP:E
C:\VIBRA16\DIAGNOSE /S
C:\VIBRA16\MIXERSET /P /Q
PATH C:\DOS;C:\WINDOWS
LH C:\MOUSE\MOUSE
LH C:\DOS\MSCDEX.EXE /D:CD001
This is what each line does in this example:
@ECHO OFF
This is a batch file command
that stops the lines in the batch file from being displayed or echoed to the screen.
PROMPT $p
This is a batch file command
that changes the way the DOS prompt looks. By default the prompt looks like C:\>, after
this command it looks like C:\.
SET SOUND=C:\VIBRA16
This line tells DOS that the
directory location for the sound card drivers.
SET BLASTER=A220 I5 D1 H5 P330
T6
This line tells DOS the hardware
settings used by the sound card. Sound Blaster is the leading sound card made by Creative
Labs. Most software and other brand sound cards are compatible with it. These settings may
present even if you don't have a Soundblaster Sound Card.
SET MIDI=SYNTH:1 MAP:E
This line contains additional
settings for the MIDI portion of the Sound card. MIDI stands for Musical Instrument
Digital Interface. It allows the computer to communicate with musical instruments.
Normally the sound cards joystick port also doubles as a MIDI port. The Sound Card can
usually simulate MIDI sounds internally as well.
C:\VIBRA16\DIAGNOSE /S
This line runs the Diagnose.exe
program provided by the sound card maker. The /S is a switch used to engage certain
settings within the program.
C:\VIBRA16\MIXERSET /P /Q
This line runs the Mixerset.exe
program provided by the sound card maker. The /P and /Q are switches used to engage
certain settings within the program.
PATH C:\DOS;C:\WINDOWS
This is a batch file command
that sets a path for DOS to search automatically when you type a program name at the
prompt.
LH C:\MOUSE\MOUSE
This line runs the mouse.com
program needed to use a mouse in DOS. LH is the abbreviation for LOADHIGH which places the
program into the Upper memory area if possible.
LH C:\DOS\MSCDEX.EXE /D:CD001
This is the Microsoft CD
Extension program that allows DOS and Windows to use CD-ROM players. The /D:CD001 matches
the name assigned by the CD.SYS line used in the Config.sys file. LH is the abbreviation
for LOADHIGH which places the program into the Upper memory area if possible.