Config.sys

From FreeDOS
Jump to: navigation, search

This entry is part of the FreeDOS Spec

In each of the following, d: represents a drive letter, path represents a full pathname, and file represents a full filename, or a file mask including * and ?.

BREAK

Determines how frequently the DOS kernel checks to see if the user has pressed control-c to stop a program, or to cancel an activity such as printing.

break=on
break=off

Options:

break=off instructs the kernel to detect this key press only during keyboard reads, and writes to the screen and printer.

break=on turns on the kernel's additional control-c checks during any disk read or write operation.

BUFFERS

Allocates memory for disk buffers during kernel startup.

buffers=nn[,n]

Options:

nn is the number of buffers, in the range 1–99.

n is the number of secondary buffers, in the range 1–8.

COUNTRY

Sets the international behavior of DOS.

country=nnn[,[mmm][,[d:][path]file]]

Options:

nnn is the country code, as shown in the table below.

mmm is the code page, as listed in the Appendix, Country Codes. If not specified, a code page will be chosen automatically.

d:path\file is the pathname to a country-information file. If not specified, the file 'COUNTRY.SYS' is used instead.

Refer to the appendix for a listing of DOS country codes and time/date formats.

DEVICE

Loads a driver into memory.

device=[d:][path]file [options]

Options:

d:path\file is the driver to load.

'options' are the options to the driver program, not to the 'device' instruction.

DEVICEHIGH

Loads a driver into high memory.

devicehigh=[d:][path]file [options]

Options:

d:path\file is the driver to load.

'options' are the options to the driver program, not to the 'device' instruction.

DOS

Tell the DOS kernel how to load itself.

dos=high|low[,umb|noumb]
dos=[high|low,]umb|noumb

Options:

dos=high tells DOS to load itself into high memory. You must first load a high memory manager.

dos=low tells DOS to load into conventional memory.

dos=umb tells DOS to keep a link between UMA and conventional.

dos=noumb tells DOS not to keep a link between UMA and conventional.

DRIVEPARM

Defines parameters for block devices.

driveparm=[options]

Options:

/d:nnn is the physical drive number, in the range 0–255. 0=A:

/c says the drive can detect when the door is open/closed.

/f:n is the drive type, in the range 0–9

0 = 160/180k or 320/360k
1 = 1.2M
2 = 720k (the default)
3 = not defined
4 = not defined
5 = hard disk
6 = tape
7 = 1.44M
8 = R/W optical
9 = 2.88M

/h:nn is the number of heads, in the range 1–99.

/i says the disk is a 3.5-inch drive

/n is a non-removable disk

/s:nn is the number of sectors, in the range 1–99

/t:nn is the number of tracks per side

FCBS

Sets the number of File Control Blocks.

fcbs=nnn

Options:

nnn is the number of File Control Blocks, in the range 1–255 (default=4)

FILES

Sets the number of allowed open files.

files=nnn

Options:

nnn is the number of files that DOS will allow to be open at once, in the range 8–255 (default=8)

INSTALL

Runs a TSR program, without an environment, instead of using a something like LH or LOADHIGH.

install=[d:][path]file [options]

Options:

d:path\file is the TSR to run

options are for the TSR, not for the 'install' instruction

LASTDRIVE

Sets the last letter of the alphabet that can be used as a drive letter.

lastdrive=d

Options:

d is a letter, in the range A-Z. It may be upper or lowercase.

REM

A comment or remark.

rem [comment]

Options:

'rem' will ignore everything that follows it on the same line.

SHELL

Says what DOS shell to run.

shell=[d:][path]file [options]

Options:

d:path\file is the shell program to run. For example, COMMAND.COM

'options' are for the shell program, not the 'shell' instruction.

STACKS

Adds stacks to handle hardware interrupts.

stacks=nn,nnn

Options:

nn are the number of stacks in the range 8–64, and 0.

nnn are the size of each stack, in bytes, in the range 32–512.