AUTOEXEC

From DOSBoxWiki
Revision as of 04:14, 29 October 2009 by Anon lynx (talk | contribs) (Removed erroneous info specifying the location of the dosbox.conf file, extraneous info)
Jump to navigationJump to search

Upon BOOT, the original MS-DOS system would first load settings from a file called CONFIG.SYS, and then execute any commands found in the AUTOEXEC.BAT file. Commonly the AUTOEXEC.BAT file would define the system PATH, load device drivers, and launch Windows. Because DOSBox already emulates most of what a CONFIG.SYS, and AUTOEXEC.BAT would do, there isn't much need to define anything other than your mountable drives.

In DOSBox, AUTOEXEC.BAT is a segment of the dosbox.conf file.

A Common AUTOEXEC.BAT

@ECHO OFF
MOUNT C C:\DOSGAMES
C:
CLS
ECHO Starting MS-DOS 6.22...

This AUTOEXEC.BAT file mounts a C drive (pointed to the Local-Directory C:\DOSGAMES), changes to that drive (from Z:), Clears the Screen and prints the message

Starting MS-DOS 6.22...

(The message that MS-DOS printed immediately before loading the CONFIG.SYS and AUTOEXEC.BAT).

MOUNT C C:\oldgames C: