Command: autoexec.bat
AUTOEXEC.BAT is a batch file that is run automatically
when DOS starts.
FreeDOS also accepts other .bat names instead of AUTOEXEC.BAT.
Batch files are text files, but with the .bat file extension. They can
be created or edited with a text editor such as EDIT or EDLIN.
To run a batch file, simply type its name at the DOS prompt, with or
without the .bat extension.
AUTOEXC.BAT must ALWAYS be in the root directory of the boot media.
Syntax:
- none - simply copy autoexec.bat into the root directory
(A:\ or C:\)
Options:
- none -
Comments:
FreeDOS also accepts other .bat names instead of AUTOEXEC.BAT
You only have to load:
"shell=DRIVE:\PATH\command.com /p=DRIVE:\PATH\FILENAME.bat"
in CONFIG.SYS / FDCONFIG.SYS.
Many FreeDOS fans use "FDAUTO.BAT" instead of "AUTOEXEC.BAT".
You can use AUTOEXEC.BAT to load different .com and .exe drivers,
e.g. keyboard driver, mouse driver, CD-ROM driver and so on.
AUTOEXEC.BAT commands are commands that are internal to
command.com ONLY and need no other file in order to work.
You can use the commands beep, cls, echo, lh, loadhigh, path,
prompt and set outside of a batch file too.
Examples:
IN A .BAT FILE / AUTOEXEC.BAT:
lh C:\fdos\bin\mkeyb.exe
lh C:\fdos\bin\ctmouse.exe
See also:
batch files beep call choice cls
echo edit edlin for goto
if lh loadhigh path pause
prompt rem set shift
Copyright © 2003 Robert Platt, updated 2007 by W. Spiegl.
This file is derived from the FreeDOS Spec Command HOWTO.
See the file H2Cpying for copying conditions.