CONFIG.SYS

System configuration file for DOS and OS/2


title: "CONFIG.SYS" type: doc version: 1 created: 2026-02-28 author: "Wikipedia contributors" status: active scope: public tags: ["dos-configuration-files", "os/2-files", "configuration-files"] description: "System configuration file for DOS and OS/2" topic_path: "general/dos-configuration-files" source: "https://en.wikipedia.org/wiki/CONFIG.SYS" license: "CC BY-SA 4.0" wikipedia_page_id: 0 wikipedia_revision_id: 0

::summary System configuration file for DOS and OS/2 ::

**** is the configuration file for the DOS and OS/2 operating systems that specifies startup options options that cannot be changed after the system has booted. The data it contains is read by the system and used to configure many aspects including memory management, peripherals and applications. Each line can contain a name-value pair that is either a directive that sets the value of a system setting or with name "DEVICE" extends system capability by loading a file such as a device driver or a terminate-and-stay-resident (TSR) program. was introduced with DOS 2.0.

As Windows technology diverged from DOS over time, use of diminished. Both and are in the root folder of the Windows 95 and Windows 98 boot drives, but typically, they are empty. Windows Me does not use a CONFIG.SYS file at all. Instead, it loads environment variables from the Windows Registry key: HKLM\System\CurrentControlSet\Control\SessionManager\Environment.

Use

::figure[src="https://upload.wikimedia.org/wikipedia/commons/f/fc/PC-MOS_boot_screen.png" caption="CONFIG.SYS}} on startup"] ::

User maintained

The file is maintained by a user in order to control the behavior of the system. As an ASCII text file, a user generally edits it via a text editor.

System consumed

During boot, the DOS BIOS loads the file from the root directory of the drive from which the system boots. After processing the file, the system loads and executes the command shell specified in the SHELL line, or if there is no such line. The command shell in turn is responsible for processing the file.

Missing/corrupt

Even though loading CONFIG.SYS is part of a normal bootup process, the system can boot if the file is missing or corrupt. A system probably requires troubleshooting if the file gets deleted or corrupted.

Default shell

If does not contain a SHELL directive (or the file is corrupt or missing), DOS typically searches for in the root directory of the boot drive. If this is not found, versions of DOS before 6.0 will not start up. MS-DOS 6.0/PC DOS 6.1 and Novell DOS 7 and higher will instead display a prompt to enter the path and filename of a command processor. This recovery prompt is also displayed when the primary command processor is aborted due to faults or if it is exited deliberately. (In the case of , the internal EXIT command is disabled only when the shell was started with /P.) This also provides limited means to replace the shell at runtime without having to reboot the system. Since the MS-DOS 7.0 and higher COMMAND.COM executable is incompatible with DR-DOS, but typically resides in the root of drive C: in dual-boot scenarios with DR-DOS, DR-DOS 7.02 and higher no longer allow to bypass SHELL directives in (+)// "skip"/"trace"/"step" modes. (Some later issues added (+) to reinvoke the former "skip" behaviour in order to allow recovery from problems with invalid SHELL arguments as well.) Also, if no SHELL directive could be found when skipping processing via (+) (and also with (+)/, when the default file extension has been changed with SYS /DR:ext), the user is prompted to enter a valid shell file name before trying to load COMMAND.COM from the root. Pressing without specifying a file will assume the former default.

File size limit

Depending on the version, the size of the file is limited to a few kilobytes under MS-DOS/PC DOS (up to 64 KB in most recent versions), whereas the file's size is unlimited under DR-DOS. This is because the former operating systems (since DOS 3.0) will compile the file into some tokenized in-memory representation before they sort and regroup the directives to be processed in a specific order (with device drivers always being loaded before TSRs), whereas DR-DOS interprets the file and executes most directives line-by-line, thereby giving full control over the load order of drivers and TSRs via DEVICE and INSTALL (for example to solve load order conflicts or to load a program debugger before a device driver to be debugged) and allowing to adapt the user interaction and change the flow through the file based on conditions like processor types installed, any type of keys pressed, load or input errors occurring, or return codes given by loaded software. This becomes particularly useful since INSTALL can also be used to run non-resident software under DR-DOS, so that temporary external programs can be integrated into the CONFIG.SYS control flow.

Data limits

In MS-DOS/PC DOS 2.0 through 4.01, the length of the SHELL line was limited to 31 characters, whereas up to 128 characters are possible in later versions. DR-DOS even accepts up to 255 characters. directives do not accept long filenames.

Dual booting DOS and Windows 9x

When installing Windows 95 over a preexisting DOS/Windows install, and are renamed to and . This is intended to ease dual booting between Windows 9x and DOS. When booting into DOS, they are temporarily renamed and . Backups of the Windows 95 versions are made as and files.

When Caldera DR-DOS 7.02/7.03 is installed on a system already containing Windows 95, Windows' and retain those names. DR-DOS' startup files are installed as (a name already used in earlier versions of DR DOS) and .

OS/2

OS/2 uses a file for configuring options, drivers and environment before the graphical subsystem loads. There are many undocumented or poorly documented directives used by OS/2. continues to be used by the OS/2 derivatives eComStation and ArcaOS. In the OS/2 subsystem of Windows NT, what appeared as to OS/2 programs is actually stored in the registry.

Example

An example CONFIG.SYS for MS-DOS 5: ::code[lang=ini] DOS=HIGH,UMB DEVICE=C:\DOS\HIMEM.SYS DEVICE=C:\DOS\EMM386.EXE RAM DEVICEHIGH=C:\DOS\ANSI.SYS FILES=30 SHELL=C:\DOS\COMMAND.COM C:\DOS /E:512 /P ::

Variations

Some DOS variants load a file with an alternate name if its exists instead of loading from the default CONFIG.SYS:

; CCONFIG.SYS: While Concurrent DOS versions 3.2 to 4.1 did not support CONFIG.SYS, later versions, Concurrent DOS 386 and Concurrent DOS XM, as well as Multiuser DOS, System Manager and REAL/32 load CCONFIG.SYS (initial "C" referring to "Concurrent") instead of CONFIG.SYS. Some versions of Multiuser DOS use a filename of CCONFIG.INI instead, whereas REAL/32 is known to look for MCONFIG.SYS. These operating systems support many additional and different configuration settings (like INIT_INSTALL) not known under MS-DOS/PC DOS, but they are stored in the binary repository named CCONFIG.BIN rather than in CCONFIG.INI. Both files are typically modified through a configuration utility named CONFIG.EXE only.

; DCONFIG.SYS: DR DOS 3.31, PalmDOS 1.0, Novell DOS 7, OpenDOS 7.01, and DR-DOS 7.02 and higher, a file named DCONFIG.SYS (initial "D" referring to "DR DOS"), if present, takes precedence over CONFIG.SYS. Since DR DOS 6.0, this was used in conjunction with disk compression software, where the original boot drive C: would become drive D: after loading the compression driver (and the "D" in the file name came in handy as well), but it is commonly used to help maintain multiple configuration files in multi-boot scenarios.

; ODCONFIG.SYS: OpenDOS 7.01 and DR-OpenDOS 7.02 look for a file named ODCONFIG.SYS, whereas some issues of DR-DOS 7.02 and higher instead also look for DRCONFIG.SYS.

: Under DR DOS 6.0 and higher, the SYS /DR:ext command can be used to change the default file extensions. For example, with SYS /L /DR:703 the written Volume Boot Record would look for a renamed and modified IBMBIO.703 system file (instead of the default IBMBIO.COM) and the IBMBIO.703 would look for IBMDOS.703 and [D]CONFIG.703 (instead of IBMDOS.COM and [D]CONFIG.SYS), so that multiple parallel sets of files can coexist in the same root directory and be selected via a boot-loader like LOADER, supplied with Multiuser DOS and DR-DOS 7.02/7.03. The SHELL directive is enhanced to provide means to specify alternative AUTOEXEC.BAT files via /P[:filename.ext] and in this specific scenario, COMMAND.COM will accept file extensions other than ".BAT" as well (both features are also supported by 4DOS). Under DR DOS 6.0 and higher, the CONFIG.SYS directive CHAIN=filespec can be used to continue processing in the named file, which does not necessarily need to reside in the root directory of the boot drive. DR-DOS 7.02 and higher optionally support an additional parameter as in CHAIN=filespec,label to jump to a specific :label in the given file.

: DR-DOS 7.03 and higher support a new SYS /A parameter in order to copy the corresponding CONFIG.SYS and AUTOEXEC.BAT files along with the system files.

; FDCONFIG.SYS: Used by FreeDOS.

; RXCONFIG.SYS: Used by RxDOS 7.24 and higher.

; CONFIG.PTS: Used by PTS-DOS.

Other variations include:

  • CONFIG.SYS is used by (DCP), an MS-DOS derivative by the former East-German VEB Robotron.
  • Under FlexOS, CONFIG.SYS is a binary file defining the resource managers and device drivers loaded.

Content

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

;REM (DOS 4.0 and DR DOS 3.31 and higher; ignored under PTS-DOS) : Starts a comment as long as no text precedes it on a line.

;; (DOS 6.0 and DR DOS 6.0 and higher) : 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.

;* (PTS-DOS only) : Starts a comment like semi-colon (;).

Load file

;CALL (OS/2 4.0 and higher only) : 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.

;DEVICE (DOS 2.0 and DOS Plus 2.1 with FIDDLOAD and DRDOS 3.31 and higher; OS/2) : Loads a device driver into memory.

;DEVICEHIGH (DOS 5.0 and DRDOS 6.0 and higher; OS/2) : Loads a device driver into upper memory. (Same as in DRDOS 5.0.)

;HIDEVICE (DR DOS 5.0 and higher only) : See .

;HIINSTALL (DR DOS 5.0 and higher only) : See .

;HIINSTALLLAST (EDR-DOS 7.01.07 and DRMK only) : Installs a TSR program into memory, like , but installs after the DOS data segment relocation. Compare also: INSTCDEX.

;INSTALL (DOS 4.0 and DR DOS 3.41 and higher) : Installs a TSR program into memory.

;INSTALLHIGH (DOS 6.0 and DR DOS 6.0 and higher) : Installs a TSR program into upper memory. (Same as in DR DOS 5.0.)

;INSTALLLAST (EDR-DOS 7.01.07 and DRMK only) : Installs a TSR program into memory, like , but installs after the DOS data segment relocation. Compare also: INSTCDEX.

;RUN (OS/2 only) : Similar to , loads programs in CONFIG.SYS. Similar to under DOS and under OS/2, but loads programs in background concurrently.

Directive

;ABORT (PTS-DOS only) : Specifies if programs can be aborted on errors. ;ACCDATE (MS-DOS 7.0 and higher only, ignored under DR-DOS 7.02 and higher): Configures which drives should store file access date stamps in the reserved area of directory entries in FAT file systems. ;AT (PTS-DOS only) : Conditional execution on AT-compatible machines only. ;AUTOCHECK (PTS-DOS only) : Boot manager. ;AUTOFAIL (OS/2 only) : Configures verbosity of error messages. ;AUX (DR-DOS 7.02 and higher only) : Changes internal default serial device driver ( to ) for device. ;AVAILDEV (DOS 2.0-2.1 and DR-DOS 7.02 and higher only) : Disables the availability of character devices outside phantom \DEV directory. ;BASEDEV (OS/2at least since 2.0 only) : Loads base device driver into memory. ;BEEP (DR-DOS 7.02 and higher only) : Emits a short beep, even if audible notifications are disabled via . ;BOOTNEXT (DRMK only) : Specifies operating system to be booted. ;BREAK (DOS 2.0 and DR DOS 3.31 and higher; OS/2PTS-DOS also) : Sets or clears extended checking. ;BUFFERS (DOS 2.0 and DR DOS 3.31 and higher; OS/2) : Specifies the number of disk buffers to allocate. ;BUFFERSHIGH (MS-DOS 7.0 and DR-DOS 7.02 and higher and FreeDOS only) : Same as , but explicitly loads buffers into HMA or UMB (like under DR DOS 6.0 and higher). ;CACHESIZE (Embedded DOS 6-XL only) : Maximum number of 512-byte cache blocks dynamically allocated from system pool. ;CACHETTL (Embedded DOS 6-XL only) : Maximum time in ms before unused cache blocks are returned to system pool. ;CACHEFLUSH (Embedded DOS 6-XL only) : Maximum time in ms before a dirty cache block gets flushed to disk. ;CAPSLOCK (DR-DOS 7.02 and higher only) : Specifies whether the keyboard status is turned on or off. ;CDDNAME (PTS-DOS only) : Specifies the name of the CD-ROM hardware driver. ;CDDBUFFERS (PTS-DOS only) : Specifies the number of buffers for CD-ROM access. ;CLOCK (PTS-DOS only) : Specifies the type of clock used by the system. ;CODEPAGE (OS/2 only) : Specifies the OEM codepage(s). ;CMOSADDR (PTS-DOS only) : Specifies the address of the CMOS RAM. ;COLOR (PTS-DOS only) : Specifies colors for boot menus. ;COM1 (DR-DOS 7.02 and higher only) : Defines count and logical order and configures I/O address and timeout for COM1: device. ;COM2 (DR-DOS 7.02 and higher only) : Defines count and logical order and configures I/O address and timeout for COM2: device. ;COM3 (DR-DOS 7.02 and higher only) : Defines count and logical order and configures I/O address and timeout for COM3: device. ;COM4 (DR-DOS 7.02 and higher only) : Defines count and logical order and configures I/O address and timeout for COM4: device. ;COMAREA (PTS-DOS only) : Specifies buffer for DMA. ;COMMENT (DOS 4.0 and higher and RxDOS, ignored under DR-DOS 7.02 and higher, under Embedded DOS and under PTS-DOS) : Redefines the lead-in character(s) for CONFIG.SYS inline-comments, or causes the following line to be ignored. ;COUNTRY (DOS 3.0 and DOS Plus 2.1 with FIDDLOAD and DR DOS 3.31 and higher; OS/2) : Enables and configures international support. ;CPOS (DR DOS 6.0 and higher only) : Sets display cursor to specified position for configuration menus. ;CPSW (MS-DOS 4.00-4.01 only, ignored under DR-DOS 7.02 and higher): For codepage switching support. ;CPU (PTS-DOS only) : Specifies RAM refresh speed. ;CPU88 (PTS-DOS only) : Conditional execution on 8088 CPUs only. ;CPU88+ (PTS-DOS only) : Conditional execution on 8088 and higher CPUs only. ;CPU86 (PTS-DOS only) : Conditional execution on 8086 CPUs only. ;CPU86+ (PTS-DOS only) : Conditional execution on 8086/8088 and higher CPUs only. ;CPU286 (PTS-DOS only) : Conditional execution on 286 CPUs only. ;CPU286+ (PTS-DOS only) : Conditional execution on 286 and higher CPUs only. ;CPU386 (DR-DOS 7.02 and higher and PTS-DOS only): Conditional execution on 386 and higher CPUs only, i.e. or ;CPU386+ (PTS-DOS only) : Conditional execution on 386 and higher CPUs only. ;CPU486 (PTS-DOS only) : Conditional execution on 486 CPUs only. ;CPU486+ (PTS-DOS only) : Conditional execution on 486 and higher CPUs only.

;DDSCS (EDR-DOS 7.01.07 only) : Configures the relocation of the drive descriptor tables. ;DEBLOCK (DRDOS 6.0 (1993 update) and higher only) : Specifies the memory segment address up to which multi-sector disk data deblocking is allowed. ;DEBUG (DRDOS 3.31 - 6.0 and 7.02 and higher only) : Enables internal debugger support. ;DEFAULT (PTS-DOS only) : Boot manager. ;DEVINFO (OS/2 only) : Configures country and codepage information for code, SCR, LPT1, LPT2, LPT3 devices. ;DISKCACHE (OS/2 only, ignored under DR-DOS 7.02 and higher) : Configures cache memory sizes. ;DISKETTE (PTS-DOS only) : Specifies floppy disk compatibility mode. ;DISPLAY (PTS-DOS only) : Specifies display font. ;DOS (DOS 5.0 and DRDOS 6.0 and higher; OS/2) : Specifies whether to load DOS into the high memory area and/or use upper memory. (Similar to under DRDOS 5.0.) ;DOSDATA (PC DOS 7.0 and higher, FreeDOS, EDR-DOS 7.01.07 and DRMK only) : Specifies whether to load DOS tables (, , , , ) into upper memory. ;DOSDIR (PTS-DOS only) : Specifies alternative path to search for DOS files. ;DPBS (DRMK only) ;DPATH (OS/2 3.0 and higher only) : Specifies the search path for data files. ;DRIVATTR (PTS-DOS only) : Specifies physical parameters of disk drives. ;DRIVPARM (DOS 3.2apparently not functional in all PC DOS 3.x version and higher) : Define parameters for unrecognized drives. ;DUMPPROCESS (OS/2 3.0 and higher only) : Enables and specifies drive for PDUMP.nnn error logs. ;ERREXE (PTS-DOS only) : Specifies if additional checks should be carried out when starting programs. ;ERROR (DRDOS 6.0 and higher only) : Specifies an error / return code to be assumed in the following. ;EXECA20OFF (PTS-DOS only) : Specifies the state of the A20 gate when starting a program. ;FASTOPEN (DRDOS 3.31 and higher and PTS-DOS only): Specified the size of the hash table for fast file open operations. Works considerably differently from the external MS-DOS/PC DOS FASTOPEN driver. ;FCBS (DOS 3.0 and DRDOS 3.31 and higher; OS/2) : Specifies the number of cached FCBs that can be opened at once. (Under DR-DOS, and dynamically share the same internal buffer.) ; FCBSHIGH (MS-DOS 7.0 and DR-DOS 7.02 and higher only) : Same as , but explicitly loads FCBs into upper memory. ;FILENAME (PTS-DOS only) : Boot manager. ;FILES (DOS 2.0 and DRDOS 3.31 and higher; OS/2) : Specifies the number of files that can be opened at once. ;FILESHIGH (MS-DOS 7.0 and DR-DOS 7.02 and higher and FreeDOS only) : Same as , but explicitly loads file handles into upper memory.

;HIBUFFERS (DR DOS 6.0 and higher only) : See or or . ;HIDOS (DR DOS 5.0 and higher only) : See . ;HIFCBS (DR DOS 7.02 and higher, EDR-DOS 7.01.07 and DRMK only) : See or . ;HIFILES (DR DOS 7.02 and higher, EDR-DOS 7.01.07 and DRMK only) : See or . ;HILASTDRIVE (DR-DOS 7.02 and higher, EDR-DOS 7.01.07 and DRMK only) : See or or . ;HISHELL (DR-DOS 7.02 and higher only) : See . ;HISTACKS (DR-DOS 7.02 and higher, EDR-DOS 7.01.07 and DRMK only) : See or . ;HISTORY (DR DOS 3.41 and higher only) : Enables and configures console and command line history buffer and extended pattern search functionality. ;HMAREA (PTS-DOS only) : Specifies the address of the HMA segment. ;IDLEHALT (FreeDOS only) : Configures HLT energy saving. ;IDTCHK (PTS-DOS only) : Specifies if the system should check for boot sector viruses. ;IFS (MS-DOS 4.00-4.01 only, ignored under DR-DOS 7.02 and higher; OS/2) : Loads installable file systems. ;IOPL (OS/2 only) : 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 (DOS 6.0 and higher, not DR-DOS, not FreeDOS) : Include directives from another menu block. (Can be emulated using and under DR-DOS.) ;INSERT (DR-DOS 7.02 and higher only) : Specifies whether the keyboard mode status is turned on or off. ;IRQPRIORITY (Embedded DOS 6-XL only) : Rotates PIC controller interrupt priorities so that specified number gets the highest priority

;KEYBOARD (PTS-DOS only) : Specifies the keyboard layout. ;KEYBUF (FreeDOS only) : Specifies the address of the relocated keyboard buffer. ;LASTDRIVE (DOS 3.0 and DOS Plus 2.1 with FIDDLOAD and DR DOS 3.31 and higher; OS/2) : Specifies the maximum of drives that can be accessed. ;LASTDRIVEHIGH (MS-DOS 7.0 and DR-DOS 7.02 and higher, and FreeDOS only) : Same as LASTDRIVE, but explicitly loads the Current Directory Structure (CDS) into upper memory. ;LIBPATH (OS/2 only) : Specifies a list of search paths for DLLs. ;LOADFIX (PTS-DOS only) : Specifies how old programs should be handled. ;LOCKS (PTS-DOS only) : Specifies number of file locks. ;LOGO (MS-DOS 7.0 and higher and PTS-DOS only, ignored under DR-DOS 7.02 and higher) : Configures boot logo support under MS-DOS. Allows to display startup message in conjunction with PTS-DOS boot manager. ;LPT1 (DR-DOS 7.02 and higher only) : Defines count and logical order and configures I/O address and timeout for LPT1: device. ;LPT2 (DR-DOS 7.02 and higher only) : Defines count and logical order and configures I/O address and timeout for LPT2: device. ;LPT3 (DR-DOS 7.02 and higher only) : Defines count and logical order and configures I/O address and timeout for LPT3: device. ;LPT4 (some versions of DR-DOS 7.02 and higher only) : Enables, defines count and logical order and configures I/O address and timeout for LPT4: device. ;MAXWAIT (OS/2 only) : Specifies time before a waiting process gets a higher priority. ;MEMMAN (OS/2 only) : Configures memory allocation strategy ;MEMORY (PTS-DOS only) : Specifies the default DOS memory allocation strategy. ;MENU (FreeDOS only) : Defines menu options. ;MENUCOLOR (DOS 6.0 and higher, not DR DOS, not FreeDOS) : Specifies menu colors. (Can be emulated using under DR-DOS.) ;MENUDEFAULT (DOS 6.0 and higher and FreeDOS, not DR DOS) : Specifies the default menu block. (Can be emulated using and under DR-DOS.) ;MENUITEM (DOS 6.0 and higher, not DR DOS, not FreeDOS) : Specifies a menu block. (Can be emulated using and under DR-DOS.) ;MULTITRACK (DOS 4.0 and DR-DOS 7.02 and higher; ignored under PTS-DOS) : Specifies whether multitrack disk operations are used or not.

;NOCHAR (DR-DOS 7.02 and higher only) : Specifies the default No () character in Yes/No/Resume questions.)

;NUMLOCK (DOS 6.0 and Novell DOS 7 and higher) : Specifies whether the keyboard status is turned on or off.

;PAUSEONERROR (OS/2 only) : Specifies if user must acknowledge errors in CONFIG.SYS.

;PRINTMONBUFFER PRINTMONBUFSIZE (OS/2 only) : Configures buffer size for LPT1, LPT2, LPT3.

;PC (PTS-DOS only) : Conditional execution on PC-compatible machines only.

;PRIORITY (OS/2 only) : Configures priority scheduler.

;PRIORITY_DISK_IO (OS/2 only) : Configures priority of programs using disk I/O.

;PRN (DR-DOS 7.02 and higher only): Changes internal default printer device driver ( to , or even ) for PRN device.

;PROTECTONLY (OS/2 only) : Specifies if DOS programs can be run or not. ;PROTSHELL (OS/2 only) : Loads user interface. ;PS1 (PTS-DOS only) : Conditional execution on PS/1-compatible machines only. ;PS2 (PTS-DOS only) : Conditional execution on PS/2-compatible machines only. ;QUIET (PTS-DOS and DRMK only) : Mutes display output send to STDOUT.

;REIPL (OS/2 3.0 and higher only) : Specifies if system should reboot automatically on errors. ;RESERVEDRIVELETTER (OS/2 3 FixPack 24 and higher only) : Specifies a drive letter not to be used up for local block device drivers. ;RESUMECHAR (DR-DOS 7.02 and higher only): Specifies the default Resume () character in Yes/No/Resume queries.) ;RMSIZE (OS/2 only, ignored under DR-DOS 7.02 and higher) : Defines the real mode memory size. ;SAVENAME (PTS-DOS only) : Specifies, if the first character of deleted files should be stored in the reserved area of directory entries in the FAT file system. ;SCREEN (FreeDOS and PTS-DOS only) : 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. ;SCROLLOCK (DR-DOS 7.02 and higher only) : Specifies whether the keyboard status is turned on or off.) ;SET (DOS 6.0 and DRDOS 6.0 and higher; OS/2) : Sets environment variables. ;SHELL (DOS 2.0 and DRDOS 3.31 and higher; OS/2) : Loads the command interpreter shell. ;SHELLHIGH (DR-DOS 7.02 and higher and PTS-DOS and FreeDOS only) : 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.) ;SHIFTSTATE (PTS-DOS only) : Specifies the state of the keyboard modifiers like Shift Lock, Num Lock, Scroll Lock or Insert mode. ;SHUTDOWN (PTS-DOS only) : Specifies if files should be closed on . ;SOFTREBOOT (PTS-DOS only) : Specifies if POST should be skipped on reboots. ;STACK (ignored under DRDOS 3.31-5.0 and 7.02 and higher only) : Compatibility dummy - DR DOS 3.31 - 6.0 were mostly reentrant and had a different stacks layout. ;STACKS (DOS 3.2 and Novell DOS 7 and higher, ignored under DR DOS 6.0 and PTS-DOS) : Specifies the number of stacks for hardware interrupts. ;STACKSIZE (Embedded DOS 6-XL only) : Default stack size allocated for new threads. ;STACKSHIGH (MS-DOS 7.0 and DR-DOS 7.02 and higher, and FreeDOS only) : Same as , but explicitly loads buffers into upper memory. ;STORAGE (PTS-DOS only) : Boot manager. ;STRING (MS-DOS 3.0 only, ignored under DR-DOS 7.02 and higher) : Internal use. ;STUBA20 (PTS-DOS only) : Specifies how XMS A20 gate control should work. ;SUBMENU (DOS 6.0 and higher, not DRDOS, not FreeDOS) : Specifies a submenu block. (Can be emulated using , and under DR-DOS.) ;SUPPRESSPOPUPS (OS/2 3.0 and higher only) : Specifies a drive where to log error information instead of displaying a textmode popup screen. ;SWAPPATH (OS/2 only) : Specifies swap file path. ;SWITCHAR (DOS 2.0-2.1, DOS Plus 2.1 with FIDDLOAD, DR-DOS 7.02 and higher, PTS-DOS, FreeDOS and RxDOS only): Defines the default SwitChar used by the system (either '/' or '-'). ;SWITCHES (DOS 4.0 and Novell DOS 7 and higher; ignored under PTS-DOS) : Specifies special options. ;SXFAKEHWFPU (OS/2 Warp 4 FixPak 1 (and higher) only) : Specifies if a fix for a FPU rounding bug should be activated or not. ;SYSBOOT (PTS-DOS only) : Specifies file name of alternative DOS operating systems to boot. ;SYSGEN (PTS-DOS only) : Configures the location of the various DOS parts in memory. ;SYSLOAD (PTS-DOS only) : Load system from alternative disk area. ;SYSTEMPOOL (Embedded DOS 6-XL only) : Size of system memory pool from which the system dynamically allocates for various purposes ;SYSTOUMB (PTS-DOS only) : Specifies if DOS data and code should be loaded into UMBs. ;THREADS (OS/2 only) : Specifies number of concurrent threads. ;TIMESLICE (OS/2 only) : Configures minimum and maximum time slices for scheduler. ;TMPEXT (PTS-DOS only) : Specifies the file extension for temporary files. ;TRACE (DR-DOS 7.02 and higher and PTS-DOS only; OS/2) : 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. ;TRACEBUF (OS/2 only) : Specifies size of log buffer. ;TRAPDUMP (OS/2 3.0 and higher only) : Logs detailed error information.

;UMB (Embedded DOS only) : Configures DOS management to use a specific segment as UMB memory. ;UMBSRV (PTS-DOS only) : Configures the UMB server used. ;USERAM (PTS-DOS only) : Specifies the address ranges used as UMB RAM. ;VERIFY (DR-DOS 7.02 and higher and Embedded DOS only) : Enables or disables disk write verification. ;VERSION (FreeDOS, Embedded DOS, and EDR-DOS 7.01.07 only) : Specifies the DOS version (and optionally the true DOS version) to be reported to programs. ;VGASCREEN (PTS-DOS only) : Configures VGA display status. ;VIDEOMODE (PTS-DOS only) : Similar to under FreeDOS, specifies current video mode. ;VIRTDMA (PTS-DOS only) : Specifies if virtual DMA can be used. ;VME (OS/2 only) : Specifies if the processor's Virtual Mode Extensions (VME) should be deactivated or not. ;VXD (PTS-DOS only) : Configures VxD driver for Windows. ;WINDOWS (PTS-DOS only) : Configures system support for Windows. ;XBDA (EDR-DOS 7.01.07 and DRMK only) : Configures the relocation of the extended BIOS data area (XBDA) ;XT (PTS-DOS only) : Conditional execution on XT-compatible machines only. ;YEAR2000 (DR-DOS 7.02 and higher only) : Configures the built-in Year 2000 support. ;YESCHAR (PalmDOS 1.0, DR DOS 6.0 updates and Novell DOS 7 and higher only) : Specifies the default Yes () character in Yes/No/Resume queries. ;ZOMBIEDRV (PTS-DOS only) : Configures deletion tracking.

User interaction

;? (DR DOS 3.41 and higher, Embedded DOSat least General Software Embedded DOS-ROM 4.1 and Embedded DOS 6-XL and FreeDOS only) : 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.

;! (FreeDOS only) : Unconditionally evaluate the subsequent directive.

;CLS (DR DOS 6.0 and higher only) : Clears screen.

;ECHO (DRDOS 5.0 and higher, and PTS-DOS and FreeDOS only) : Displays a message on screen.

;EECHO (FreeDOS only) : Displays a message including ANSI escape sequences.

;GETKEY (DR DOS 6.0 and higher only) : Waits for key or timeout and sets error level to pressed key's ASCII code; 1024 on timeout.

;PAUSE (PTS-DOS only) : Similar to and under DR-DOS, displays text and waits for a key press.

;TIMEOUT (DRDOS 6.0 and higher and PTS-DOS only) : 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

;: (DR DOS 5.0 and higher only) : Defines a label to use as a jump target for , , , and .

;CHAIN (DR DOS 5.0 and higher and Embedded DOS only) : Continues processing in new file or (since DR-DOS 7.02) at a label.

;DRSWITCH (DRDOS 7.02 and higher only) : See .

;EXIT (DRDOS 6.0 and higher only) : Stops file processing before the end of the file has been reached (except for and directive processing under some conditions).

;FORCE (PTS-DOS only) : Include execution of specified CONFIG.SYS subsections. See .

;GOSUB (DR DOS 6.0 and higher only) : Continues processing at a label, with returning to old location.

;GOTO (DR DOS 5.0 and higher only) : Continues processing at a label.

;IGNORE (PTS-DOS only) : Exclude execution of specified CONFIG.SYS subsections. See .

;NEWFILE (Datalight ROM-DOS only) : Continues processing in new file (similar to DR-DOS CHAIN) and optionally after loading a specific device driver and setting %NEWFILE% environment variable.

;ONERROR (DR DOS 6.0 and higher only) : Conditional execution depending on last return code/error status only, i.e. or {{code|2=dosbatch|1=ONERROR 10 ONERROR 17 ONERROR

;RETURN (DRDOS 6.0 and higher only) : Returns processing to the location of the last or . A return code can be specified but defaults to 0 if not specified.

;SWITCH (DR DOS 6.0 and higher only) : Conditionally continues processing at one of the specified labels depending on keys pressed, with returning to old location.

Notes

References

References

  1. typically resides in {{mono. [[IBMBIO.COM]] or {{mono. [[IO.SYS]]
  2. (1997-07-30). "NWDOS-TIPs — Tips & Tricks rund um Novell DOS 7, mit Blick auf undokumentierte Details, Bugs und Workarounds".
  3. (1998). "Caldera DR-DOS 7.02 User Guide". [[Caldera, Inc.]].
  4. (1997-10-02). "Caldera OpenDOS 7.01/7.02 Update Alpha 3 IBMBIO.COM README.TXT".
  5. (2001-04-09). "NWDOS-TIPs — Tips & Tricks rund um Novell DOS 7, mit Blick auf undokumentierte Details, Bugs und Workarounds".
  6. (April 1993). "Booting Multiple Operating Systems with the DR Multiuser DOS LOADER Utility". [[Novell]].
  7. (2002-02-27). "4DOS 8.00 online help".
  8. (2007-01-29). "Understanding the Settings in the Windows Millennium Edition CONFIG.SYS File". [[Microsoft]].
  9. (2006-11-15). "Windows 95 CD-ROM CONFIG.TXT File - Microsoft Windows 95 README for MS-DOS Config.sys Commands". [[Microsoft]].
  10. (2017-01-07). "The Windows 98 Config.txt File - Microsoft Windows 98 README for MS-DOS Config.sys Commands". [[Microsoft Corporation]].
  11. (1995). "CONFIG.SYS statements used by OS/2". REXX Tips & Tricks, Version 2.80.
  12. (2017-08-14). "The continuing saga of Windows 3.1 in enhanced mode on OmniBook 300". MoHPC - the Museum of HP Calculators.
  13. (1997-02-10). "CCI Multiuser DOS 7.22 GOLD Online Documentation". [[Concurrent Controls, Inc.]] (CCI).
  14. (1997-02-10). "CCI Multiuser DOS 7.22 GOLD Installation Guide". [[Concurrent Controls, Inc.]] (CCI).
  15. (April 2005). "Datalight ROM-DOS User's Guide". [[Datalight, Inc.]].
  16. (2016-11-29). "Betriebssystem DCP".
  17. (2004-06-17). "Re: Random Lockups with DR-DOS 7.03". opendos@delorie.com; [[FidoNet]] conference: ALT_DOS.
  18. (2004-06-17). "Re: Random Lockups with DR-DOS 7.03". opendos@delorie.com; [[FidoNet]] conference: ALT_DOS.
  19. (2004-06-17). "Re: Random Lockups with DR-DOS 7.03". opendos@delorie.com; [[FidoNet]] conference: ALT_DOS.
  20. (2000-11-22). "Optimizing CONFIG.SYS...". opendos@delorie.com.
  21. ecm. (2018-10-08). "RxDOS 7.24 release".
  22. (2002-04-06). "Re: [fd-dev] ANNOUNCE: CuteMouse 2.0 alpha 1". freedos-dev.
  23. (November 1987). "Damit die Scheibe spurt - 720 KB-Disketten mit MF-Drives im AT; Atari ST-Disketten unter DOS ab Version 3.2 in PCs, ATs oder Modell 30". [[Verlag Heinz Heise GmbH & Co. KG]].
  24. (2001). "eComStation 1.0 Manual".
  25. "Troubleshooting the ArcaOS update procedure".
  26. (1994-06-17). "Das Ende von DOS ist nur noch eine Frage der Zeit". [[IDG Business Media GmbH]].

::callout[type=info title="Wikipedia Source"] This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page. ::

dos-configuration-filesos/2-filesconfiguration-files