SoFunction
Updated on 2025-04-09

System device loading and system environment settings under DOS

First of all, to configure the environment under DOS, it is essentially inevitable to use these two files. File is a professional system startup configuration file. It is mainly used to load memory management programs, set up memory expansion and memory expansion, load related hardware drivers, set related environment variables, etc., to create the necessary user environment for the normal use of user computers (in the DOS era, proficiency in files is often a symbol of "experts"). (In Windows 95/98, the system already comes with setting functions such as memory management and environment variables. The role of the file is far less important. The reason why it is still in service is mainly to maintain compatibility with old versions of DOS applications)

Some configuration items that are often used in this article are as follows:

1. FILES=number

It indicates the number of files that can be opened at the same time. Generally, you can choose from 20 to 50. It should be noted that if the value of FILES is set too large, it will take up too much basic memory. The default system is FILES=8.

2. BUFFERS=number

Indicates the number of disk buffers to be set, usually set to around 20-30. The default value is generally 15. A disk buffer is a memory area used to store data read from a disk or data written to a disk.

3. DEVICE and DEVICEHIGH

Used to load some memory resident programs to manage devices. Such as memory managers and optical drive drivers. like:

DEVICE=C:\DOS\

DEVICE=C:\DOS\ RAM

DEVICEHIGH=C:\CDROM\

The difference between DEVICEHIGH and DEVICE is that the former loads the program into high-end memory.

4. and

DOS can only use 640KB of memory directly, that is, basic memory, and must rely on other memory management programs to use more memory. These two commands are the most commonly used memory management programs.

Among them, memory between 640KB and 1MB is called high-end memory and is reserved for use by the system. More than 1MB of memory becomes extended memory, which is responsible for managing extended memory.

Responsible for managing high-end memory and emulating extended memory in extended memory for use by certain software.

Therefore, in order to use more memory, the following instructions should be included in the configuration file.

DEVICE=C:\DOS\

DEVICE=C:\DOS\ RAM

It should be noted that installation must be required, so it is necessary to ensure that the installation configuration command is before.

5、DOS=HIGH,UMB

Generally speaking, this command is required to add the file, which will move the DOS system files into high-end memory and free up more basic memory for other software to use. It should be noted that if UMB is not installed, then this instruction will be invalid.

Here is a typical file content:

DEVICE=C:\DOS\ (load himem, extend memory manager)

DEVICE=C:\DOS\ NOEMS (a tool for integrating high-end memory into extended memory)

BUFFERS=15,0  (number of buffers)

FILES=50 (number of files opened at the same time)

DOS=UMB (where the system places DOS itself)

LASTDRIVE=Z (Which drive letter can be used as the largest one)

DOS=HIGH 

DEVICEHIGH=C:\DOS\ATAPI_CD.SYS /D:MSCD000 /I:0 (Load the optical drive driver.)

STACKS=9,256

In addition, in CONFIG, you can also configure menu-style multi-task selection configurations for different tasks, such as playing games, setting up virtual disks, etc. However, these applications are no longer commonly used, so I won't introduce them here.

After that, most environments can be set up, but sometimes it is necessary to collaborate on the loading of system devices, such as optical drives. In addition, if a writing device uses commands to drive it directly, it is best to execute it in the middle to drive it directly, such as the mouse.

Here is a typical one:

about

The computer will automatically look for batch files every time it starts, so that some commands that need to be executed every time it is started, such as setting the path PATH, loading the mouse driver MOUSE, disk acceleration SMARTDRV, etc.

Here is a typical document:

@ECHO OFF 'The command line does not display
 'There is a directory prompt before setting the prompt
PROMPT &P& G
PATH C:\DOS;C:\;C:\WINDOWS; C:\TOOLS 'Set file search path
 LH C:\MOUSE\
 'Loading the mouse driver
LH C:\DOS\
'Load Disk Acceleration Management
 LH C:\DOS\MSCDEX /S /D:MSCD000/M:12 /V 'loadCD-ROMdrive
'Setting up temporary directory
SET TEMP=C:\TEMP

If you need to start the Chinese system, you can also add the startup command of the Chinese system, and naturally after starting it, it will be Chinese dos.

By cooperating with two files, the configuration of the DOS system environment in most cases is completed.