CONFIG. Command and configuration of sys file


   CONFIG. Sys is an important file in DOS system. Its configuration directly affects the use and efficiency of the system. If not configured properly, many programs may not work properly. Therefore, configure config correctly Sys file is very necessary and important. Let me introduce config Commands in sys and their configuration methods.  

CONFIG. Commands in sys:
Note: all commands ending in high (such as devicehigh) mean that they are transferred to UMB (Upper Memory), but some such commands (such as filesheight) must be in MS-DOS # 7 Used in version X.  

Accdate: Specifies whether to record the date when the file was last accessed for each drive.  
Usage: accdate = drive 1 + | – [drive 2 + | -]  
For example, accdate = C + D + e + will record the last accessed date of the file in disks C, D and E.  
This command is only available for MS-DOS # 7 In X.  

Break: sets or clears the extended Ctrl + C check.  
Usage: break = on | off

Buffers / buffers: allocates memory for a specified number of disk buffers.  
Usage: buffers = number of disk buffers, [number of buffers in slave cache]

Device / devicehigh: loads the specified device driver into memory.  
Usage: device / devicehigh file name [parameter]
Where, the file name is the full path of the file, such as C: \ DOS \ HIMEM SYS。  

DOS: used for the configuration of DOS system, such as whether to use HMA (high-end memory area), etc.  
Usage: Dos = [high|low] [, umb|, noumb] [, auto|, noauto] [, single]
Where, high and low indicate whether HMA is used or not, UMB and noumb indicate whether UMB is used or not, auto or noauto indicate whether the system is automatically configured or not, and single indicates DOS using a single mode. Among them, auto / noauto and single are only used for MS-DOS # 7 In X.  

Driveparm: set parameters of existing physical devices.  
Note: this command is rarely used and I haven’t used it, so I’ll skip it for the time being.  

FCBS / fcbshigh: Specifies the number of file control blocks (FCBS) that can be opened simultaneously.  
Usage: FCBS / fcbshigh = number of FCBS that can be opened at the same time.  
Note: FCB is mainly in DOS # 1 X. for higher versions, the system can be configured automatically.  

Files / filesheight: Specifies the number of files that {can be accessed at the same time.  
Usage: files / filesheight = number of files that can be accessed at the same time.  
Note: generally, the setting value of files / filesheight is about 30.  

Install / installhigh: used to load TSR (memory resident program).  
Usage: Install / installhigh = file name [parameter]
For example: installhigh = C: \ DOS \ doskey COM /APPEDIT 

Lastdrive / lastdriveheight: Specifies the last valid drive letter of the drive that can be accessed.  
Usage: lastdrive = drive letter
If lastdrive = f, f will be set to the last valid drive letter.  

NumLock: Specifies whether the lamp is on at startup.  
Usage: NumLock = on | off

REM: add comments.  
Usage: REM [annotation string]
Note: the string in the annotation is only used to increase readability and will not be executed.  

Set: Design DOS environment variable.  
Usage: set = [variable value]

Shell: Specifies the name and location of the command interpreter used by DOS.  
Usage: shell = file name [parameter]
Note: the default file name is command COM, you can also specify other files, such as 4dos Exe, etc.  

Stack / stackhigh: Specifies the number of stacks to use.  
Usage: stack / stackhigh = number of stacks, size of each stack
Note: the commonly specified value is 9256, which can meet most requirements.  

Switches: specify some special options.  
Usage: switches = [/ w] [/ F] [/ k] [/ N] [/ E [: n]]

Others are some menu configuration commands, such as MenuItem, menucolor, etc.  

In MS-DOS # 7 There are also some unpublished commands in X, such as logo, comment, etc.  

After knowing the above commands, we will talk about how to use these commands to configure config Sys file. The quality of configuration has a great impact on the system. The following is the config in my computer (both MS-DOS # 7.10) Sys file, you can use as a reference.  

Computer I, using EMM386 EXE: 

device=d:\dos\echo.sys L/o/a/d/i/n/g CONFIG.SYS… 
device=d:\dos\emm386.exe noems novcpi i=b600-b7ff 
devicehigh=d:\dos\vide-cdd.sys /d:IDE-CD 
shell=c:\ /p /e:640 
set temp=e:\temp 
set tmp=e:\temp 
accdate=c+ d+ e+ 

Computer II, using umbpci SYS: 

device=d:\dos\echo.sys L/o/a/d/i/n/g CONFIG.SYS… 
devicehigh=d:\dos\vide-cdd.sys /d:IDE-CD 
shell=d:\dos\ /p /e:640 
set temp=e:\temp 
set tmp=e:\temp 
accdate=c+ d+ e+ 

You might as well try, I believe you will also make a good config Sys file.