The AUTOEXEC.BAT file is a special batch file that, per definition, is executed automatically every time a DOS session is started.

Its main purpose is to process commands that set up the system for DOS sessions. The file also can start other batch files and programs. Any DOS command described in the &os2; Command Reference (CMDREF.INF) can be used in this file. The commands that are used most often are APPEND, CALL, ECHO, PATH, PROMPT, REM, and SET.

For more information, select from the following list: