The content of a CONFIG.SYS file and its many variants is described below. Each item describes a directive, load command or another syntactic element.
Comment ; : Starts a comment as long as no text precedes it on a line. ; : Starts a comment and unlike can follow a directive to form an in-line comment. See . In MS-DOS/PC DOS, the inline-comment is not ignored if put in double-quotes. ; : Starts a comment like semi-colon (;).
Load file ; : Similar to under DOS, loads programs in CONFIG.SYS. Similar to under OS/2, but runs in foreground and halts CONFIG.SYS processing until return. ; : Loads a device driver into memory. ; : Loads a device driver into upper memory. (Same as in DRDOS 5.0.) ; : See . ; : See . ; : Installs a TSR program into memory, like , but installs after the DOS
data segment relocation. Compare also:
INSTCDEX. ; : Installs a TSR program into memory. ; : Installs a TSR program into upper memory. (Same as in DR DOS 5.0.) ; : Installs a TSR program into memory, like , but installs after the DOS data segment relocation. Compare also:
INSTCDEX. ; : Similar to , loads programs in CONFIG.SYS. Similar to under DOS and under OS/2, but loads programs in background concurrently.
Directive ; : Specifies if programs can be aborted on errors. ; : Configures which drives should store file access date stamps in the
reserved area of directory entries in
FAT file systems. ; : Conditional execution on AT-compatible machines only. ; : Boot manager. ; : Configures verbosity of error messages. ; : Changes internal default serial device driver ( to ) for device. ; : Disables the availability of character devices outside phantom \DEV directory. ; : Loads base device driver into memory. ; : Emits a short beep, even if audible notifications are disabled via . ; : Specifies operating system to be booted. ; : Sets or clears extended checking. ; : Specifies the number of disk buffers to allocate. ; : Same as , but explicitly loads buffers into HMA or UMB (like under DR DOS 6.0 and higher). ; : Maximum number of 512-byte cache blocks dynamically allocated from system pool. ; : Maximum time in ms before unused cache blocks are returned to system pool. ; : Maximum time in ms before a dirty cache block gets flushed to disk. ; : Specifies whether the keyboard status is turned on or off. ; : Specifies the name of the CD-ROM hardware driver. ; : Specifies the number of buffers for CD-ROM access. ; : Specifies the type of clock used by the system. ; : Specifies the OEM codepage(s). ; : Specifies the address of the CMOS RAM. ; : Specifies colors for boot menus. ; : Defines count and logical order and configures I/O address and timeout for
COM1: device. ; : Defines count and logical order and configures I/O address and timeout for
COM2: device. ; : Defines count and logical order and configures I/O address and timeout for
COM3: device. ; : Defines count and logical order and configures I/O address and timeout for
COM4: device. ; : Specifies buffer for DMA. ; : Redefines the lead-in character(s) for CONFIG.SYS inline-comments, or causes the following line to be ignored. ; : Enables and configures international support. ; : Sets display cursor to specified position for configuration menus. ; : For codepage switching support. ; : Specifies RAM refresh speed. ; : Conditional execution on 8088 CPUs only. ; : Conditional execution on 8088 and higher CPUs only. ; : Conditional execution on 8086 CPUs only. ; : Conditional execution on 8086/8088 and higher CPUs only. ; : Conditional execution on 286 CPUs only. ; : Conditional execution on 286 and higher CPUs only. ; : Conditional execution on 386 and higher CPUs only, i.e. or ; : Conditional execution on 386 and higher CPUs only. ; : Conditional execution on 486 CPUs only. ; : Conditional execution on 486 and higher CPUs only. ; : Configures the relocation of the drive descriptor tables. ; : Specifies the memory segment address up to which multi-sector disk data
deblocking is allowed. ; : Enables internal debugger support. ; : Boot manager. ; : Configures country and codepage information for code, SCR, LPT1, LPT2, LPT3 devices. ; : Configures cache memory sizes. ; : Specifies
floppy disk compatibility mode. ; : Specifies display font. ; : Specifies whether to load DOS into the
high memory area and/or use upper memory. (Similar to under DRDOS 5.0.) ; : Specifies whether to load DOS tables (, , , , ) into upper memory. ; : Specifies alternative path to search for DOS files. ; ; : Specifies the search path for data files. ; : Specifies physical parameters of disk drives. ; : Define parameters for unrecognized drives. ; : Enables and specifies drive for PDUMP.nnn error logs. ; : Specifies if additional checks should be carried out when starting programs. ; : Specifies an error / return code to be assumed in the following. ; : Specifies the state of the
A20 gate when starting a program. ; : Specified the size of the
hash table for fast file open operations. Works considerably differently from the external MS-DOS/PC DOS
FASTOPEN driver. ; : Specifies the number of cached
FCBs that can be opened at once. (Under DR-DOS, and dynamically share the same internal buffer.) ; : Same as , but explicitly loads FCBs into upper memory. ; : Boot manager. ; : Specifies the number of files that can be opened at once. ; : Same as , but explicitly loads file handles into upper memory. ; : See or or . ; : See . ; : See or . ; : See or . ; : See or or . ; : See . ; : See or . ; : Enables and configures console and command line history buffer and extended pattern search functionality. ; : Specifies the address of the HMA segment. ; : Configures HLT energy saving. ; : Specifies if the system should check for boot sector viruses. ; : Loads
installable file systems. ; : Specifies programs (which would normally run at the CPU's
IOPL ring 3) which should be allowed to run at
ring 2 in order to directly access the hardware for I/O. ; : Include directives from another menu block. (Can be emulated using and under DR-DOS.) ; : Specifies whether the keyboard mode status is turned on or off. ; : Rotates PIC controller interrupt priorities so that specified number gets the highest priority ; : Specifies the keyboard layout. ; : Specifies the address of the relocated keyboard buffer. ; : Specifies the maximum of drives that can be accessed. ; : Same as LASTDRIVE, but explicitly loads the Current Directory Structure (CDS) into upper memory. ; : Specifies a list of search paths for DLLs. ; : Specifies how old programs should be handled. ; : Specifies number of file locks. ; : Configures boot logo support under MS-DOS. Allows to display startup message in conjunction with PTS-DOS boot manager. ; : Defines count and logical order and configures I/O address and timeout for
LPT1: device. ; : Defines count and logical order and configures I/O address and timeout for
LPT2: device. ; : Defines count and logical order and configures I/O address and timeout for
LPT3: device. ; : Enables, defines count and logical order and configures I/O address and timeout for
LPT4: device. ; : Specifies time before a waiting process gets a higher priority. ; : Configures memory allocation strategy ; : Specifies the default DOS memory allocation strategy. ; : Defines menu options. ; : Specifies menu colors. (Can be emulated using under DR-DOS.) ; : Specifies the default menu block. (Can be emulated using and under DR-DOS.) ; : Specifies a menu block. (Can be emulated using and under DR-DOS.) ; : Specifies whether multitrack disk operations are used or not. ; : Specifies the default No () character in Yes/No/Resume questions.) ; : Specifies whether the keyboard Num Lock| status is turned on or off. ; : Specifies if user must acknowledge errors in CONFIG.SYS. ; : Configures buffer size for LPT1, LPT2, LPT3. ; : Conditional execution on PC-compatible machines only. ; : Configures priority scheduler. ; : Configures priority of programs using disk I/O. ; : Changes internal default printer device driver ( to , or even ) for PRN device. ; : Specifies if DOS programs can be run or not. ; : Loads user interface. ; : Conditional execution on
PS/1-compatible machines only. ; : Conditional execution on
PS/2-compatible machines only. ; : Mutes display output send to STDOUT. ; : Specifies if system should reboot automatically on errors. ; : Specifies a drive letter not to be used up for local block device drivers. ; : Specifies the default Resume () character in Yes/No/Resume queries.) ; : Defines the real mode memory size. ; : Specifies, if the first character of deleted files should be stored in the
reserved area of directory entries in the
FAT file system. ; : Similar to under PTS-DOS, specifies the video mode to be used under FreeDOS. Under PTS-DOS, does not specify the video mode but screen access methods. ; : Specifies whether the keyboard Scroll Lock| status is turned on or off.) ; : Sets environment variables. ; : Loads the command interpreter shell. ; : Same as , but supports an additional parameter to define the size of the pre-allocation for COMMAND.COM to relocate its resident portion into the HMA (with /MH). Can be useful to avoid HMA fragmentation in conjunction with third-party shells which cannot load into the HMA. SHELLHIGH under PTS-DOS tries to load the shell into UMBs instead.) ; : Specifies the state of the keyboard modifiers like Shift Lock, Num Lock, Scroll Lock or Insert mode. ; : Specifies if files should be closed on . ; : Specifies if POST should be skipped on reboots. ; : Compatibility dummy - DR DOS 3.31 - 6.0 were mostly reentrant and had a different stacks layout. ; : Specifies the number of stacks for hardware interrupts. ; : Default stack size allocated for new threads. ; : Same as , but explicitly loads buffers into upper memory. ; : Boot manager. ; : Internal use. ; : Specifies how XMS
A20 gate control should work. ; : Specifies a submenu block. (Can be emulated using , and under DR-DOS.) ; : Specifies a drive where to log error information instead of displaying a textmode popup screen. ; : Specifies swap file path. ; : Defines the default
SwitChar used by the system (either '/' or '-'). ; : Specifies special options. ; : Specifies if a fix for a FPU rounding bug should be activated or not. ; : Specifies file name of alternative DOS operating systems to boot. ; : Configures the location of the various DOS parts in memory. ; : Load system from alternative disk area. ; : Size of system memory pool from which the system dynamically allocates for various purposes ; : Specifies if DOS data and code should be loaded into UMBs. ; : Specifies number of concurrent threads. ; : Configures minimum and maximum time slices for scheduler. ; : Specifies the file extension for temporary files. ; : Globally or locally enables or disables CONFIG.SYS (and AUTOEXEC.BAT) single-stepping execution. The functionality under OS/2 differs significantly from that under DOS. ; : Specifies size of log buffer. ; : Logs detailed error information. ; : Configures DOS management to use a specific segment as UMB memory. ; : Configures the UMB server used. ; : Specifies the address ranges used as UMB RAM. ; : Enables or disables disk write verification. ; : Specifies the DOS version (and optionally the true DOS version) to be reported to programs. ; : Configures VGA display status. ; : Similar to under FreeDOS, specifies current video mode. ; : Specifies if virtual DMA can be used. ; : Specifies if the processor's
Virtual Mode Extensions (VME) should be deactivated or not. ; : Configures VxD driver for Windows. ; : Configures system support for Windows. ; : Configures the relocation of the extended BIOS data area (XBDA) ; : Conditional execution on XT-compatible machines only. ; : Configures the built-in
Year 2000 support. ; : Specifies the default Yes () character in Yes/No/Resume queries. ; : Configures deletion tracking.
User interaction ; : Displays a yes/no query and (since DR DOS 5.0) optional message to ask the user to confirm evaluation of subsequent directives. FreeDOS does not support optional messages, but optional conditions in conjunction with boot menus defined with and . DOS 6.0 and higher supports a similar feature by adding a after the name field, i.e. instead of . This variant is also supported by DR DOS. ; : Unconditionally evaluate the subsequent directive. ; : Clears screen. ; : Displays a message on screen. ; : Displays a message including ANSI escape sequences. ; : Waits for key or timeout and sets error level to pressed key's ASCII code; 1024 on timeout. ; : Similar to and under DR-DOS, displays text and waits for a key press. ; : Specifies the timeouts in CONFIG.SYS single-stepping and with , and , and the default answers for Yes/No queries and selections. PTS-DOS only supports the timeout value.
Flow control ; : Defines a label to use as a jump target for , , , and . ; : Continues processing in new file or (since DR-DOS 7.02) at a label. ; : See . ; : Stops file processing before the end of the file has been reached (except for and directive processing under some conditions). ; : Include execution of specified CONFIG.SYS subsections. See . ; : Continues processing at a label, with returning to old location. ; : Continues processing at a label. ; : Exclude execution of specified CONFIG.SYS subsections. See . ; : Continues processing in new file (similar to DR-DOS
CHAIN) and optionally after loading a specific device driver and setting
%NEWFILE% environment variable. ; : Conditional execution depending on last return code/error status only, i.e. or . ; : Returns processing to the location of the last or . A return code can be specified but defaults to 0 if not specified. ; : Conditionally continues processing at one of the specified labels depending on keys pressed, with returning to old location. == See also ==