Английская Википедия:CONFIG.SYS
Шаблон:Short description Шаблон:Use dmy dates Шаблон:Use list-defined references Шаблон:Redirect-distinguish CONFIG.SYS is the primary configuration file for the DOS and OS/2 operating systems. It is a special ASCII text file that contains user-accessible setup or configuration directives evaluated by the operating system's DOS BIOS (typically residing in IBMBIO.COM or IO.SYS) during boot. CONFIG.SYS was introduced with DOS 2.0.[nb 1]
Usage
The directives in this file configure DOS for use with devices and applications in the system. The CONFIG.SYS directives also set up the memory managers in the system. After processing the CONFIG.SYS file, DOS proceeds to load and execute the command shell specified in the SHELL line of CONFIG.SYS, or COMMAND.COM if there is no such line. The command shell in turn is responsible for processing the AUTOEXEC.BAT file.
CONFIG.SYS is composed mostly of name=value directives which look like variable assignments. In fact, these will either define some tunable parameters often resulting in reservation of memory, or load files, mostly device drivers and terminate-and-stay-resident programs (TSRs), into memory.
In DOS, CONFIG.SYS is located in the root directory of the drive from which the system was booted.
The filename is also used by Шаблон:Ill (DCP), an MS-DOS derivative by the former East-German VEB Robotron.[1]
Some versions of DOS will probe for alternative filenames taking precedence over the default CONFIG.SYS filename if they exist:
While older versions of Concurrent DOS 3.2 to 4.1 did not support CONFIG.SYS files at all, later versions of Concurrent DOS 386 and Concurrent DOS XM, as well as Multiuser DOS, System Manager and REAL/32 will probe for CCONFIG.SYS (with "C" derived from "Concurrent") instead of CONFIG.SYS. Some versions of Multiuser DOS use a filename of CCONFIG.INI instead,[2][3] 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.[2][3] Both files are typically modified through a configuration utility named CONFIG.EXE only.[2][3]
Under 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 (with "D" derived from "DR DOS"), if present, will take precedence over CONFIG.SYS.[4][5][6][7] 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.
In addition to this, OpenDOS 7.01 and DR-OpenDOS 7.02 will look for a file named ODCONFIG.SYS,[8][9][6] whereas some issues of DR-DOS 7.02 and higher will instead also look for DRCONFIG.SYS.[6]
Further, under DR DOS 6.0 and higher, the SYS /DR:ext
command can be used to change the default file extensions.[8][10][7] 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.[4] 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).[11] 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.[4][6] 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.[8][9][6]
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.[7]
FreeDOS implements a similar feature with its FDCONFIG.SYS configuration file. RxDOS 7.24 and higher use RXCONFIG.SYS instead.[12] PTS-DOS uses CONFIG.PTS.
Both CONFIG.SYS and AUTOEXEC.BAT can be found included in the root folder of Windows 95, and Windows 98 boot drives, as they are based on DOS. Typically, these files are left empty, with no content.
Windows ME does not even parse the CONFIG.SYS file during the Windows boot process,[13] loading environment variables from the Windows Registry instead:
- HKLM\System\CurrentControlSet\Control\SessionManager\Environment
Under FlexOS, CONFIG.SYS is a binary file defining the resource managers and device drivers loaded.
Directives
:;*?!
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Defines labels in CONFIG.SYS as jump targets for Шаблон:Mono, Шаблон:Mono, Шаблон:Mono, Шаблон:Mono and Шаблон:Mono directives.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Similar to Шаблон:Mono, but can be used also for in-line comments (following other CONFIG.SYS directives). See Шаблон:Mono. (Under MS-DOS/PC DOS the inline-comment is not ignored if put in double-quotes.)
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Used to lead in in-line comments in addition to the ; directive.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Displays a Yes/No query and (since DR DOS 5.0) optional message to ask the user for confirmation to execute the following CONFIG.SYS directives.[14] (FreeDOS does not support optional messages, but optional conditions in conjunction with boot menus defined with Шаблон:Mono and Шаблон:Mono.) (DOS 6.0 and higher supports a similar feature by adding a Шаблон:Mono after the corresponding CONFIG.SYS directive, f.e. Шаблон:Mono or Шаблон:Mono instead of Шаблон:Mono. This variant is also supported by DR DOS.)
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Unconditionally execute the following CONFIG.SYS directive.
AШаблон:NbndC
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies if programs can be aborted on errors.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold=today()
- [8] Configures which drives should store file access date stamps in the reserved area of directory entries in FAT file systems.[15][16]
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Conditional execution on AT-compatible machines only.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Boot manager.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Configures verbosity of error messages.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Changes internal default serial device driver (Шаблон:Mono to Шаблон:Mono) for Шаблон:Mono device.[8]
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Disables the availability of character devices outside phantom \DEV directory.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Loads base device driver into memory.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Emits a short beep, even if audible notifications are disabled via Шаблон:Mono.[8]
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies operating system to be booted.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Sets or clears extended Шаблон:Keypress checking.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies the number of disk buffers to allocate.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Same as Шаблон:Mono, but explicitly loads buffers into HMA or UMB (like Шаблон:Mono under DR DOS 6.0 and higher).
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Maximum number of 512-byte cache blocks dynamically allocated from system pool.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Maximum time in ms before unused cache blocks are returned to system pool.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Maximum time in ms before a dirty cache block gets flushed to disk.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Similar to Шаблон:Mono under DOS, loads programs in CONFIG.SYS. Similar to Шаблон:Mono under OS/2, but runs in foreground and halts CONFIG.SYS processing until return.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies whether the keyboard Шаблон:Keypress status is turned on or off.[8]
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies the name of the CD-ROM hardware driver.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies the number of buffers for CD-ROM access.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Continues CONFIG.SYS processing in new file and (since DR-DOS 7.02) at optional label.[8][6]
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies the type of clock used by the system.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Clears screen.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies the OEM codepage(s).
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies the address of the CMOS RAM.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies colors for boot menus.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Defines count and logical order and configures I/O address and timeout for COM1: device.[8][17]
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Defines count and logical order and configures I/O address and timeout for COM2: device.[8][17]
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Defines count and logical order and configures I/O address and timeout for COM3: device.[8][17]
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Defines count and logical order and configures I/O address and timeout for COM4: device.[8][17]
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies buffer for DMA.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Redefines the lead-in character(s) for CONFIG.SYS inline-comments, or causes the following line to be ignored.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Enables and configures international support.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Sets display cursor to specified position for configuration menus.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- For codepage switching support.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies RAM refresh speed.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Conditional execution on 8088 CPUs only.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Conditional execution on 8088 and higher CPUs only.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Conditional execution on 8086 CPUs only.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Conditional execution on 8086/8088 and higher CPUs only.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Conditional execution on 286 CPUs only.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Conditional execution on 286 and higher CPUs only.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Conditional execution on 386 and higher CPUs only, f.e. Шаблон:Code or Шаблон:Code
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Conditional execution on 386 and higher CPUs only.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Conditional execution on 486 CPUs only.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Conditional execution on 486 and higher CPUs only.
DШаблон:NbndF
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Configures the relocation of the drive descriptor tables.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies the memory segment address up to which multi-sector disk data deblocking is allowed.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Enables internal debugger support.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Boot manager.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Loads a device driver into memory.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Loads a device driver into upper memory. (Same as Шаблон:Mono in DRШаблон:NbhDOS 5.0.)
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Configures country and codepage information for KBD, SCR, LPT1, LPT2, LPT3 devices.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Configures cache memory sizes.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies floppy disk compatibility mode.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies display font.
- Шаблон:Anchor Шаблон:Mono[18] Шаблон:Nobold
- Specifies whether to load DOS into the high memory area and/or use upper memory. (Similar to Шаблон:Mono under DRШаблон:NbhDOS 5.0.)
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies whether to load DOS tables (Шаблон:Mono, Шаблон:Mono, Шаблон:Mono, Шаблон:Mono, Шаблон:Mono) into upper memory.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies alternative path to search for DOS files.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies the search path for data files.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies physical parameters of disk drives.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Define parameters for unrecognized drives.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- See Шаблон:Mono.[14]
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Enables and specifies drive for
PDUMP.nnn
error logs. - Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Displays a message on screen.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Displays a message including ANSI Escape sequences.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies if additional checks should be carried out when starting programs.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies an error / return code to be assumed in the following.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies the state of the A20 gate when starting a program.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Finishes CONFIG.SYS processing before the end of the file has been reached (except for Шаблон:Mono and Шаблон:Mono directive processing under some conditions).
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specified the size of the hash table for fast file open operations. Works considerably differently from the external MS-DOS/PC DOS FASTOPEN driver.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies the number of cached FCBs that can be opened at once. (Under DR-DOS, Шаблон:Mono and Шаблон:Mono dynamically share the same internal buffer.)
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Same as Шаблон:Mono, but explicitly loads FCBs into upper memory.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Boot manager.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies the number of files that can be opened at once.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Same as Шаблон:Mono, but explicitly loads file handles into upper memory.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Include execution of specified CONFIG.SYS subsections. See Шаблон:Mono.
GШаблон:NbndI
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Waits for key (or timeout) and sets error level to its ASCII code (or 1024 on timeout).
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Continues CONFIG.SYS processing at specified label.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Continues nested CONFIG.SYS processing at specified label, with Шаблон:Mono returning to old location.[8]
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- See Шаблон:Mono or Шаблон:Mono or Шаблон:Mono.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- See Шаблон:Mono.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- See Шаблон:Mono.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- See Шаблон:Mono or Шаблон:Mono.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- See Шаблон:Mono or Шаблон:Mono.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- See Шаблон:Mono.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Installs a TSR program into memory, like Шаблон:Mono, but installs after the DOS data segment relocation. Compare also: INSTCDEX.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- See Шаблон:Mono or Шаблон:Mono or Шаблон:Mono.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- See Шаблон:Mono.[8][14][19]
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- See Шаблон:Mono or Шаблон:Mono.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Enables and configures console and command line history buffer and extended pattern search functionality.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies the address of the HMA segment.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Configures HLT energy saving.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies if the system should check for boot sector viruses.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Loads installable file systems.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Exclude execution of specified CONFIG.SYS subsections. See Шаблон:Mono.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- 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.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Include directives from another menu block. (Can be emulated using Шаблон:Mono and Шаблон:Mono under DR-DOS.)
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies whether the keyboard Шаблон:Keypress mode status is turned on or off.[8]
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Installs a TSR program into memory.[4][11]
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Installs a TSR program into upper memory. (Same as Шаблон:Mono in DR DOS 5.0.)
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Installs a TSR program into memory, like Шаблон:Mono, but installs after the DOS data segment relocation. Compare also: INSTCDEX.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Rotates PIC controller interrupt priorities so that specified number gets the highest priority
KШаблон:NbndM
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies the keyboard layout.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies the address of the relocated keyboard buffer.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies the maximum of drives that can be accessed.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Same as LASTDRIVE, but explicitly loads the Current Directory Structure (CDS) into upper memory.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies a list of search paths for DLLs.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies how old programs should be handled.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies number of file locks.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Configures boot logo support under MS-DOS. Allows to display startup message in conjunction with PTS-DOS boot manager.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Defines count and logical order and configures I/O address and timeout for LPT1: device.[8]
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Defines count and logical order and configures I/O address and timeout for LPT2: device.[8]
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Defines count and logical order and configures I/O address and timeout for LPT3: device.[8]
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Enables, defines count and logical order and configures I/O address and timeout for LPT4: device.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies time before a waiting process gets a higher priority.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Configures memory allocation strategy
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies the default DOS memory allocation strategy.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Defines menu options.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies menu colors. (Can be emulated using Шаблон:Mono under DR-DOS.)
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies the default menu block. (Can be emulated using Шаблон:Mono and Шаблон:Mono under DR-DOS.)
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies a menu block. (Can be emulated using Шаблон:Mono and Шаблон:Mono under DR-DOS.)
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies whether multitrack disk operations are used or not.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Continues CONFIG.SYS processing in new file (similar to DR-DOS CHAIN) and optionally after loading a specific device driver and setting %NEWFILE% environment variable.[20]
NШаблон:NbndQ
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies the default No (Шаблон:Keypress) character in Yes/No/Resume questions.[8][14][19])
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies whether the keyboard [[Num Lock|Шаблон:Keypress]] status is turned on or off.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Conditional execution depending on last return code/error status only, f.e. Шаблон:Code or Шаблон:Code.[4]
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Similar to Шаблон:Mono and Шаблон:Mono under DR-DOS, displays a text and waits for a key press.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies if user must acknowledge errors in CONFIG.SYS.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Configures buffer size for LPT1, LPT2, LPT3.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Conditional execution on PC-compatible machines only.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Configures priority scheduler.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Configures priority of programs using disk I/O.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Changes internal default printer device driver (Шаблон:Mono to Шаблон:Mono, or even Шаблон:Mono) for PRN device.[8]
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies if DOS programs can be run or not.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Loads user interface.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Conditional execution on PS/1-compatible machines only.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Conditional execution on PS/2-compatible machines only.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Mutes display output send to STDOUT.
RШаблон:NbndT
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies if system should reboot automatically on errors.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Allows comments in CONFIG.SYS.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies a drive letter not to be used up for local block device drivers.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies the default Resume (Шаблон:Keypress) character in Yes/No/Resume queries.[8][19])
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Returns nested CONFIG.SYS processing at previous location of Шаблон:Mono or Шаблон:Mono directive. An optional return code can be given, otherwise 0 is assumed.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Defines the real mode memory size.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Similar to Шаблон:Mono, loads programs in CONFIG.SYS. Similar to Шаблон:Mono under DOS and Шаблон:Mono under OS/2, but loads programs in background concurrently.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies, if the first character of deleted files should be stored in the reserved area of directory entries in the FAT file system.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Similar to Шаблон:Mono under PTS-DOS, specifies the video mode to be used under FreeDOS. Under PTS-DOS, Шаблон:Mono does not specify the video mode but screen access methods.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies whether the keyboard [[Scroll Lock|Шаблон:Keypress]] status is turned on or off.[8][19])
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Sets environment variables.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Loads the command interpreter shell.[19][21]
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Same as Шаблон:Mono, but supports an additional Шаблон:Mono 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.)[8][14][11][19] - Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies the state of the keyboard modifiers like Shift Lock, Num Lock, Scroll Lock or Insert mode.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies if files should be closed on Шаблон:Keypress.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies if POST should be skipped on reboots.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Compatibility dummy - DR DOS 3.31 - 6.0 were mostly reentrant and had a different stacks layout.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies the number of stacks for hardware interrupts.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Default stack size allocated for new threads.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Same as Шаблон:Mono, but explicitly loads buffers into upper memory.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Boot manager.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Internal use.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies how XMS A20 gate control should work.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies a submenu block. (Can be emulated using Шаблон:Mono, Шаблон:Mono and Шаблон:Mono under DR-DOS.)
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies a drive where to log error information instead of displaying a textmode popup screen.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies swap file path.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Conditionally continues nested CONFIG.SYS processing at one of the specified labels depending on keys pressed, with Шаблон:Mono returning to old location.[8][14][19]
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Defines the default SwitChar used by the system (either '/' or '-').[11]
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies special options.[19][8]
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies if a fix for a FPU rounding bug should be activated or not.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies file name of alternative DOS operating systems to boot.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Configures the location of the various DOS parts in memory.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Load system from alternative disk area.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Size of system memory pool from which the system dynamically allocates for various purposes
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies if DOS data and code should be loaded into UMBs.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies number of concurrent threads.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies the timeouts in CONFIG.SYS single-stepping and with Шаблон:Mono, Шаблон:Mono and Шаблон:Mono, and the default answers for Yes/No queries and Шаблон:Mono selections.[8][14][19] PTS-DOS only supports the timeout value.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Configures minimum and maximum time slices for scheduler.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies the file extension for temporary files.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Globally or locally enables or disables CONFIG.SYS (and AUTOEXEC.BAT) single-stepping execution.[19][8] The functionality under OS/2 differs significantly from that under DOS.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies size of Шаблон:Mono log buffer.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Logs detailed error information.
UШаблон:NbndZ
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Configures DOS management to use a specific segment as UMB memory.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Configures the UMB server used.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies the address ranges used as UMB RAM.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Enables or disables disk write verification.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies the DOS version (and optionally the true DOS version) to be reported to programs.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Configures VGA display status.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Similar to Шаблон:Mono under FreeDOS, specifies current video mode.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies if virtual DMA can be used.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies if the processor's Virtual Mode Extensions (VME) should be deactivated or not.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Configures VxD driver for Windows.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Configures system support for Windows.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Configures the relocation of the Extended BIOS data area (XBDA)
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Conditional execution on XT-compatible machines only.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Configures the built-in Year 2000 support.
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Specifies the default Yes (Шаблон:Keypress) character in Yes/No/Resume queries.[8][19]
- Шаблон:Anchor Шаблон:Mono Шаблон:Nobold
- Configures deletion tracking.
Issues
The system can still boot if this file is missing or corrupted. However, this file, along with AUTOEXEC.BAT, is essential for the complete bootup process to occur with the DOS operating system. These files contain information that is used to customize the operating system for personal use. They also contain the requirements of different software application packages. A DOS system would require troubleshooting if either of these files became damaged or corrupted.
If CONFIG.SYS does not contain a SHELL directive (or the file is corrupt or missing), DOS typically searches for COMMAND.COM in the root directory of the boot drive.[19] 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.[4] (In the case of COMMAND.COM, 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,[21] 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 (Шаблон:Keypress+)Шаблон:Keypress/Шаблон:Keypress/Шаблон:Keypress "skip"/"trace"/"step" modes.[8][19][21] (Some later issues added (Шаблон:Keypress+)Шаблон:Keypress to reinvoke the former Шаблон:Keypress "skip" behaviour in order to allow recovery from problems with invalid SHELL arguments as well.[19]) Also, if no SHELL directive could be found when skipping CONFIG.SYS processing via (Шаблон:Keypress+)Шаблон:Keypress (and also with (Шаблон:Keypress+)Шаблон:Keypress/Шаблон:Keypress, when the default file extension has been changed with SYS /DR:ext
),[7] the user is prompted to enter a valid shell file name before trying to load COMMAND.COM from the root.[8][21] Pressing Шаблон:Keypress without specifying a file will assume the former default.[8]
Depending on the version, the size of the CONFIG.SYS 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.[4][19] This is because the former operating systems (since DOS 3.0[22]) will compile the file into some tokenized in-memory representation[22] 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)[8][19] 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.[4][8] 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.[4][11][8]
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.[4][11] DR-DOS even accepts up to 255 characters.[4][11] CONFIG.SYS directives do not accept long filenames.
Dual booting DOS and Windows 9x
When installing Windows 95 over a preexisting DOS/Windows install, CONFIG.SYS and AUTOEXEC.BAT are renamed to CONFIG.DOS and AUTOEXEC.DOS. This is intended to ease dual booting between Windows 9x and DOS. When booting into DOS, they are temporarily renamed CONFIG.SYS and AUTOEXEC.BAT. Backups of the Windows 95 versions are made as CONFIG.W40 and AUTOEXEC.W40 files.
When Caldera DR-DOS 7.02/7.03 is installed on a system already containing Windows 95, Windows' CONFIG.SYS and AUTOEXEC.BAT retain those names. DR-DOS' startup files are installed as DCONFIG.SYS (a name already used in earlier versions of DR DOS) and AUTODOS7.BAT.[5]
OS/2 / Windows NT
OS/2 uses the CONFIG.SYS file extensively for setting up its configuration, drivers and environment before the graphical part of the system loads.
In the OS/2 subsystem of Windows NT, what appeared as CONFIG.SYS to OS/2 programs was actually stored in the registry.
There are many undocumented or poorly documented CONFIG.SYS directives used by OS/2.[23]
CONFIG.SYS continues to be used by the OS/2 derivatives eComStation[24] and ArcaOS.[25]
See also
- IBMBIO.COM / IO.SYS
- IBMDOS.COM / MSDOS.SYS
- CONFIG (environment variable)
- AUTOEXEC.BAT
- COMMAND.COM
- List of DOS commands
Notes
References
External links
- Шаблон:Cite web
- Шаблон:Cite web
- Шаблон:Cite web (Description of DR-DOS 7 CONFIG.SYS directives (incomplete))
- Шаблон:Cite web
- Шаблон:Cite web
- Шаблон:Cite web
Ошибка цитирования Для существующих тегов <ref>
группы «nb» не найдено соответствующего тега <references group="nb"/>
- ↑ Ошибка цитирования Неверный тег
<ref>
; для сносокDCP_2016
не указан текст - ↑ 2,0 2,1 2,2 Ошибка цитирования Неверный тег
<ref>
; для сносокCCI_1997_PRINTDOC
не указан текст - ↑ 3,0 3,1 3,2 Ошибка цитирования Неверный тег
<ref>
; для сносокCCI_1997_HELP
не указан текст - ↑ 4,00 4,01 4,02 4,03 4,04 4,05 4,06 4,07 4,08 4,09 4,10 Ошибка цитирования Неверный тег
<ref>
; для сносокPaul_1997_NWDOSTIP
не указан текст - ↑ 5,0 5,1 Ошибка цитирования Неверный тег
<ref>
; для сносокCaldera_1998_USER
не указан текст - ↑ 6,0 6,1 6,2 6,3 6,4 6,5 Ошибка цитирования Неверный тег
<ref>
; для сносокPaul_2004_CHAIN
не указан текст - ↑ 7,0 7,1 7,2 7,3 Ошибка цитирования Неверный тег
<ref>
; для сносокPaul_2017_DR
не указан текст - ↑ 8,00 8,01 8,02 8,03 8,04 8,05 8,06 8,07 8,08 8,09 8,10 8,11 8,12 8,13 8,14 8,15 8,16 8,17 8,18 8,19 8,20 8,21 8,22 8,23 8,24 8,25 8,26 8,27 8,28 8,29 8,30 8,31 8,32 8,33 Ошибка цитирования Неверный тег
<ref>
; для сносокPaul_1997_OD-A3
не указан текст - ↑ 9,0 9,1 Ошибка цитирования Неверный тег
<ref>
; для сносокPaul_2001_NWDOSTIP
не указан текст - ↑ Ошибка цитирования Неверный тег
<ref>
; для сносокNovell_1993_LOADER
не указан текст - ↑ 11,0 11,1 11,2 11,3 11,4 11,5 11,6 Ошибка цитирования Неверный тег
<ref>
; для сносок4DOS_8.00_HELP
не указан текст - ↑ Ошибка цитирования Неверный тег
<ref>
; для сносокRxDOS724
не указан текст - ↑ Ошибка цитирования Неверный тег
<ref>
; для сносокMicrosoft_2000_Windows-ME
не указан текст - ↑ 14,0 14,1 14,2 14,3 14,4 14,5 14,6 Ошибка цитирования Неверный тег
<ref>
; для сносокPaul_2000_CONFIG
не указан текст - ↑ Ошибка цитирования Неверный тег
<ref>
; для сносокMicrosoft_1995_CONFIG
не указан текст - ↑ Ошибка цитирования Неверный тег
<ref>
; для сносокMicrosoft_1998_CONFIG
не указан текст - ↑ 17,0 17,1 17,2 17,3 Ошибка цитирования Неверный тег
<ref>
; для сносокPaul_2002_CTMOUSE
не указан текст - ↑ Ошибка цитирования Неверный тег
<ref>
; для сносокSchneider_1994
не указан текст - ↑ 19,00 19,01 19,02 19,03 19,04 19,05 19,06 19,07 19,08 19,09 19,10 19,11 19,12 19,13 19,14 19,15 Ошибка цитирования Неверный тег
<ref>
; для сносокPaul_2004_YESCHAR
не указан текст - ↑ Ошибка цитирования Неверный тег
<ref>
; для сносокDatalight_2005_ROM-DOS
не указан текст - ↑ 21,0 21,1 21,2 21,3 Ошибка цитирования Неверный тег
<ref>
; для сносокPaul_2004_COMMAND
не указан текст - ↑ 22,0 22,1 Ошибка цитирования Неверный тег
<ref>
; для сносокErnst_1987_DRIVER
не указан текст - ↑ Ошибка цитирования Неверный тег
<ref>
; для сносокChilds_1995_OS2
не указан текст - ↑ Ошибка цитирования Неверный тег
<ref>
; для сносокecom_2001
не указан текст - ↑ Ошибка цитирования Неверный тег
<ref>
; для сносокArcaOS_2020
не указан текст