CONFIG.SYS - Commands
Return to The Config.sys Documentation Project Main Page
Autofail
The AUTOFAIL command disables popup messages for hardware errors.
AUTOFAIL=value
Default settings:
- AUTOFAIL=NO
Parameters: Value can be YES or NO .
- AUTOFAIL=NO
Popup messages are displayed.
- AUTOFAIL=YES
Popup messages are not displayed.
If this parameter is not set it defaults to NO .
Platform Support:
OS/2 2.x | OS/2 3.0 | OS/2 4.0 | OS/2 4.5x | eCS 1.x | eCs 2.x |
---|---|---|---|---|---|
Yes | Yes | Yes | Yes | Yes | Yes |
Break
With this entry you can stop DOS applications by pressing CTRL + BREAK. This slows the application down a bit, but you can immediately stop an application without waiting for the process to end.
note: For DOS programs only!
BREAK=value
Parameters: Value can be ON or OFF .
- BREAK=ON
After pressing CTRL + BREAK the process stops immediately.
- BREAK=OFF
After pressing CTRL + BREAK the process runs until it reads from the prompt.
There is no default value.
Buffers
This statements sets the number of file buffers for the FAT file system. Each buffer uses 512 bytes of RAM.
BUFFERS=value
Default settings:
- BUFFERS=5
Parameters:
Value can be in the range from 1 to 100 . If this statement is not set it defaults to 5
Platform Support:
OS/2 2.x | OS/2 3.0 | OS/2 4.0 | OS/2 4.5x | eCS 1.x | eCs 2.x |
---|---|---|---|---|---|
Yes | Yes | Yes | Yes | Yes | Yes |
Codepage
This sets up the used alphabet by your system.
CODEPAGE=primary,secondary
Parameters:
- primary
This is the default codepage.
- secondary
You can switch to the the secondary codepage with the command CHCP.
Platform Support:
OS/2 2.x | OS/2 3.0 | OS/2 4.0 | OS/2 4.5x | eCS 1.x | eCs 2.x |
---|---|---|---|---|---|
Yes | Yes | Yes | Yes | Yes | Yes |
Country
The Country statement customize your system for the desired country. It effects the default format for date, time and currency.
COUNTRY=xxx,C:\OS2\System\country.sys
Parameters:
- xxx
This is the three digit long country code. Here is a list of available country codes:
o Albania 355 o Arabic-speaking 785 o Asia english 099 o Australia 061 o Austria 063 o Belgium 032 o Bosnia 387 o Brazil 055 o Bulgaria 359 o Canada english 001 o Canada french 002 o China 086 o Croatia 385 o Czechoslovakia 421 o Denmark 045 o Finland 358 o France 033 o Germany 049 o Greece 030 o Hebrew-speaking 972 o Hungary 036 o Iceland 354 o Ireland 353 o Italy 039 o Israel 972 o Yespan 081 o Korea 082 o Latin America 003 o Netherlands 031 o New Zealand 064 o Norway 047 o Poland 048 o Portugal 351 o Romania 040 o Russia 007 o Slovak 422 o Slovenia 386 o South Africa 027 o Spain 034 o Sweden 046 o Switzerland 041 o Taiwan 088 o Thailand 066 o Turkey 090 o United Kingdom 044 o United States 001
- The second parameter points to the country.sys driver.
Platform Support:
OS/2 2.x | OS/2 3.0 | OS/2 4.0 | OS/2 4.5x | eCS 1.x | eCs 2.x |
---|---|---|---|---|---|
Yes | Yes | Yes | Yes | Yes | Yes |
Devinfo=Kbd
Prepares the keyboard for codepage switching.
DEVINFO=KBD,layout,C:\OS2\Boot\Keyboard.dcp
Parameters:
Layout can be any of the following values:
* Albania (sq) * Arabic-speaking (ar) * Arabic-speaking 101 (ar470) * Belgium french (be) * Bosnia/Herzogovina (ba) * Brazil (br) * Brazil 101 (br274) * Bulgaria (bg) * Bulgaria 241 (bg241) * Canada english (ca) * Canada french (cf) * Croatia (hr) * Czech Republic (cz) * Denmark (dk) * Estonia (ee) * Finland (su) * France (fr) * FYR Macedonia (mk) * Germany (gr) * Germany (de453) * Greece (gk) * Greece 101 (el459) * Hungary (hu) * Iceland (is) * Iceland 101 (is458) * Israel (he) * Italy (it) * Italy enhanced (it142) * Yespan (jp) * Korea (kr) * Latin America (la) * Latvian (lv) * Lithuanian (lt) * Netherlands (nl) * Norway (no) * Poland (pl) * Poland programmer's (pl457) * Portugal (po) * Romania (ro) * Russia (ru441) * Russia 443 (ru443) * Serbia/Montenegro (sr) * Slovakia (sk) * Slovenia (sl) * Spain (sp) * Sweden (sv) * Switzerland german (sg) * Switzerland french (sf) * Taiwan (tw) * Thailand (th) * Turkey (tr) * Turkey (tr440) * Ukraine (ua) * United Kingdom (uk) * United Kingdom alternate (uk168) * United States (us) * United States dvorak (usdv) * United States international (ux) * United States left-handed (usdvl) * United States right-handed (usdvr)
b>Platform Support:
OS/2 2.x | OS/2 3.0 | OS/2 4.0 | OS/2 4.5x | eCS 1.x | eCs 2.x |
---|---|---|---|---|---|
Yes | Yes | Yes | Yes | Yes | Yes |
Devinfo=Scr
Prepares the display for codepage switching.
DEVINFO=SCR,device,C:\OS2\Boot\Viotbl.dcp
Parameters:
Device can be any of the following values:
* CGA * EGA * VGA * BGA
Platform Support:
OS/2 2.x | OS/2 3.0 | OS/2 4.0 | OS/2 4.5x | eCS 1.x | eCs 2.x |
---|---|---|---|---|---|
Yes | Yes | Yes | Yes | Yes | Yes |
Diskcache
This sets up the disk cache for FAT formatted hard drives but not for floppy drives.
DISKCACHE=Size,LW,Threshold,AC:Drives
Parameters:
- Size
Size can be in the range from 48 to 14400 or D . If set to D the cache size is 5% of RAM up to a limit of 4 Mbytes. Default = D The size is expressed in Kbytes.
- LW
If this parameter is set, the lazy writing of data to disk is enabled. With lazy writing all disk writes are temporarily held in memory until the system is not busy. Lazy writing increases performance, but be careful as an unexpected power off may cause data loss.
- Threshold
Specifies the threshold size. All files which are bigger than the threshold size are NOT cached. Set it to 32 which is reported as an optimum value. Threshold can be in the range from 4 to 128 This value is expressed in sectors with a size of 512 Byte. The default is 4 sectors, i.e, all files greater than 2048 Bytes (4 asterisk 512) are not cached.
- AC:drives
The AC parameter specifies which drives should be checked by chkdsk.exe during start up after an improper shut down. Add only the drive letter without the colon. If you want to run chkdsk.exe on a drive at every start up add a plus sign (+) in front of the drive letter.
See the examples below.
To use 1 megabyte of space as your disk cache size for FAT drives, enable lazy writing, disable the autocheck feature and use the default of 2048 bytes for the threshold size, use this line: DISKCACHE=1024,LW
The following line sets the DISKCACHE to 512 Kbytes, a threshold size of 16 Kbytes, turns lazy writing on, autochecks drive C: after improper shut down and autochecks drive F: at every start up: DISKCACHE=512,LW,32,AC:C+F
This DISKCACHE command use 10% of RAM for the cache, disables lazy writing, uses 4 Kbytes as the threshold size and enables autocheck on every startup for drives C: and E:.
DISKCACHE=D,8,AC:+C+E
Platform Support:
OS/2 2.x | OS/2 3.0 | OS/2 4.0 | OS/2 4.5x | eCS 1.x | eCs 2.x |
---|---|---|---|---|---|
Yes | Yes | Yes | Yes | Yes | Yes |