Edit Config Sys Windows 10

Posted on  by 

Internet Information Services (IIS) 10.0 is included with Windows Server 2016. It uses a process model similar to that of IIS 8.5 and IIS 7.0. A kernel-mode web driver (http.sys) receives and routes HTTP requests, and satisfies requests from its response cache. Windows 95 was the successor to Windows 3.1 and included a number of important new features: Support for 32-bit Windows applications; Long mixed-case filenames (up to 255 characters) GUI improvements (e.g., Explorer, Start button, Taskbar, shortcuts) It was also first version of Windows that required an 80386 CPU (preferably a D-stepping or later).

  1. Edit Config Sys Windows 10
  2. Edit Config Sys Windows 10 Pro
  3. Edit Config Sys Windows 10

ANSI.SYS is a device driver in the DOS family of operating systems that provides extra console functions through ANSI escape sequences. It is partially based upon a subset of the text terminal control standard proposed by the ANSI X3L2 Technical Committee on Codes and Character Sets (the 'X3 Committee').

As it was not installed by default, and was notoriously slow, little software took advantage of it and instead resorted to directly manipulating the IBM PC hardware. A number of third-party alternatives that ran at reasonable speed were created, such as ANSI.COM,[1]NANSI.SYS[2] and ANSIPLUS.EXE[3] to attempt to change this.[third-party source needed]

Usage[edit]

To use ANSI.SYS under DOS, a line is added to the CONFIG.SYS (or CONFIG.NT under Windows NT based versions of Windows) file that reads:

DEVICE=drive:pathANSI.SYS options

where drive: and path are the drive letter and path to the directory in which the file ANSI.SYS is found, and options can be a number of optional switches to control the behaviour. ANSI.SYS may also be loaded into upper memory via DEVICEHIGH/HIDEVICE.

  • /K use extended keyboard BIOS functions (INT 16h) rather than standard ones[4]
  • /L force number of lines
  • /R adjust line scrolling to support screen readers[4]
  • /S or /SCREENSIZE set screensize
  • /X support redefinition of extended key codes independent of standard codes[4]

Functionality[edit]

Edit Config Sys Windows 10

Once loaded, ANSI.SYS enables code sequences to apply various text formatting features. Using this driver, programs that write to the standard output can make use of the 16 text foreground colors and 8 background colors available in VGA-compatible text mode, make text blink, change the location of the cursor on the screen, and blank the screen. It also allows for the changing of the video mode from standard 80×25 text mode to a number of different graphics modes (for example, 320×200 graphics mode with text drawn as pixels, though ANSI.SYS does not provide calls to turn individual pixels on and off).

The standard ANSI.SYS is relatively slow as it maps escape sequences to the equivalent BIOS calls. Several companies made third-party replacements that interface directly with the video memory, in a similar way to most DOS programs that have a full-screen user interface.

By default, the internal DOS command CLS works by directly calling the corresponding BIOS function to clear the screen, thereby prominently violating the hardware abstraction model otherwise maintained. However, if an ANSI driver is detected by the DR-DOSCOMMAND.COM, it will instead send the control sequence defined in the reserved environment variable$CLS to the attached console device.[5] If the environment variable is undefined, it falls back to send the sequence ESC [ 2 J instead.[5] Specifying other sequences can be used to control various screen settings after a CLS. Due to the difficulties to define environment variables containing binary data COMMAND.COM also accepts a special nnn notation for octal numbers.[5] For example, to send an alternative control sequence like ESC + (for 1Bh 2Bh as used by ASCII terminals), one could define the variable as follows:

SET $CLS=033+

These features are supported by COMMAND.COM in all versions of DOS Plus and DR-DOS, but not in MS-DOS or PC DOS. They are also supported by the command interpreters in Concurrent DOS, Multiuser DOS and REAL/32, although they use VT52 rather than ANSI control sequences by default (e.g. ESC E).[5]

Keyboard remapping[edit]

An interesting feature of ANSI.SYS is the ability to remap any key on the keyboard in order to perform shortcuts or macros for complex instructions. Using special escape sequences, the user can define any keystroke that has a character-code mapping to simulate an arbitrary sequence of such keystrokes.[6] This feature was also used by evildoers to create simple trojans out of text files laced with nefarious keyboard remaps, known as 'ANSI bombs'. A number of products were released to protect users against this:

  • Some versions of ANSI.SYS support a command line switch to disable the key remapping feature, f.e. the option /S (Secure) in ANSI.SYS of Datalight ROM-DOS[7] or NANSI.SYS[2] of FreeDOS. Other ANSI drivers like ANSIPLUS can be configured to disable the redefinition of keys as well.[3]
  • Setting CONFIG.SYSSCREEN=ANSI in PTS-DOS provides a built-in ANSI driver not supporting the keyboard remapping functions.[8][9]
  • Some of the third-party ANSI.SYS replacements were deliberately designed never to support the keyboard remapping functions.
  • PKWARE produced a TSR program, PKSFANSI (PK Safe ANSI), which filters out keyboard remapping escape codes as they are written to the standard output.[10] This has the advantage that the user can load some useful remappings from a text file and then run PKSFANSI to prevent further, possibly malicious remappings.

Occurrence[edit]

ANSI.SYS appeared in MS-DOS 2.0, the first version of the operating system supporting device drivers.[11] It was supported by all following versions of MS-DOS. It is also present in many non-Microsoft DOS systems, e.g. IBM PC DOS and DR-DOS.[12]

ANSI.SYS was required to run some software that used its cursor and color control functions.[12] It could also be used to enable elaborate color codes in the COMMAND.COM prompt. These uses were overshadowed by the use of ANSI.SYS in BBSes; ANSI escape sequences were used to enable BBSes to send elaborate text graphics more elaborate than ASCII art, and to control the cursor in ways that were used in a number of online games and similar features.

Most version of Windows did not support ANSI escape codes in any useful way (it could be used by MSDOS emulation in some versions). In Windows 10 support for similar escape sequences was built into the Win32 console (the text terminal window), but must be activated using the Windows API function SetConsoleMode by setting the ENABLE_VIRTUAL_TERMINAL_PROCESSING flag.[13]

Features[edit]

CSI (Control Sequence Introducer) is a placeholder for the common two-byte escape lead-in sequence 'ESC [' (that is, 0x1B 0x5B).[12] The ANSI standard also defines an alternative single-byte CSI code 0x9B, which is not supported by ANSI.SYS.

Standard DOS ANSI.SYS drivers support only the following sub-set of ANSI escape sequences:[12]

SequenceEffect
ESC [ r ACursor up (CUU)
ESC [ r BCursor down (CUD)
ESC [ c CCursor forward (CUF)
ESC [ c DCursor back (CUB)
ESC [ r;c fHorizontal and vertical position (HVP)
ESC [ r;c HCursor position (CUP)
ESC [ n JErase display (ED) (n=0, 2 or n=0, 1, 2)[nb 1]
ESC [ n KErase in line (EL) (n=0 or n=0, 1, 2)[nb 1]
ESC [ n mSelect graphic rendition (SGR) (n=0..47)
ESC [ 6 nDevice status report (DSR) requests cursor position,
returned as cursor position report (CPR):
ESC [ r;c R
ESC [ sSave cursor position (SCP)
ESC [ uRestore cursor position (RCP)

There are also some escape sequences specific to the implementation of ANSI.SYS. They are not generally supported by ANSI consoles in other operating systems.

SequenceEffect
ESC [ n h
ESC [ ?n h
ESC [ =n h
ESC [ >n h[nb 2]
Set screen mode (SM)[nb 2]
ESC [ n l
ESC [ ?n l
ESC [ =n l
ESC [ >n l[nb 2]
Reset screen mode (RM)[nb 2]
ESC [ n qEnable (n=1) or disable (n=0) /X support[nb 3]
ESC [ LInsert line (IL)[nb 4]
ESC [ MDelete line (DL)[nb 4]
ESC $ ) 1Switch keyboard input mode to Korean (Hangul)[nb 5]
ESC ( 2Switch keyboard input mode to English[nb 5]
ESC [ +Enable console output[nb 6]
ESC [ -Disable console output[nb 6]
ESC [ a;b;... pSet key re-definement (SKR/KR)
Screen modes
ModeDescriptionModeDescription
040 × 25 monochrome140 × 25 color
280 × 25 monochrome380 × 25 color
4320 × 200 color5320 × 200 monochrome
6640 × 200 monochrome
7Wrap at end of line[nb 7]
13320 x 200 color (graphics)14640 x 200 color (16-color graphics)
15640 x 350 monochrome (2-color graphics)16640 x 350 color (16-color graphics)
17640 x 480 monochrome (2-color graphics)18640 x 480 color (16-color graphics)
19320 x 200 color (256-color graphics)
114640 x 480 color (16-color graphics)[nb 8]115640 x 475 color (16-color graphics)[nb 8]

In some DOS implementations, video modes above 7 are not documented. Under Multiuser DOS, the only valid argument in conjunction with PCTERM is 7.

See also[edit]

Notes[edit]

  1. ^ abArguments 0, 1, 2 are only supported and distinguished by Japanese versions of MS-DOS and PC DOSANSI.SYS. Western issues of ANSI.SYS will not support or not distinguish between them. They are, however, also supported by Multiuser DOS.
  2. ^ abcdLead-in prefix '>' is only supported in Japanese versions of MS-DOS, PC DOS and DR-DOSANSI.SYS to access special Japanese display modes.
  3. ^This non-standard escape sequence is only supported by MS-DOS and PC DOSANSI.SYS. It can be used to enable or disable extended keyboard support at runtime similar to the ANSI.SYS/X startup option.
  4. ^ abThese non-standand escape sequences to insert and delete lines are only supported by Japanese versions of MS-DOS and PC DOS. They are also supported by Western issues of Multiuser DOS, but not by DR-DOS.
  5. ^ abThese non-standard escape sequences to switch between the Korean and English keyboard input modes are only supported by Korean versions of MS-DOS, PC DOS and DR-DOSANSI.SYS.
  6. ^ abThese non-standard escape sequences to disable and reenable any output to the CON: device are supported by ANSI.SYS of DR-DOS 7.02 and higher only. They are used to mute the console output during boot, for example in conjunction with DR-WebSpyderboot floppies.
  7. ^A value of 7 is used to either enable (with SM) or disable (with RM) the wrap around at the end of rows. If enabled, the option causes extra characters to wrap onto the next line, while these characters will be lost, if wrapping is disabled.
  8. ^ abVideo modes 114 and 115 are only supported by Japanese DOS/V issues of ANSI.SYS found in DR DOS 6.0, Novell DOS 7 and higher.

References[edit]

  1. ^Mefford, Michael (1989-02-07). 'ANSI.com: Download It Here'. PC Magazine. Retrieved 2011-08-10.
  2. ^ abKegel, Daniel; Almy, Tom; Auer, Eric (1999-02-28). 'NANSI – An Enhanced MS-DOS Console Driver'. 4.0. Dan Kegel's Web Hostel. Archived from the original on 2018-05-19. Retrieved 2011-08-10.
  3. ^ abSweger, Kristofer (2007) [2000]. 'Configuring ANSIPLUS'. Archived from the original on 2018-10-04. Retrieved 2018-10-04.
  4. ^ abc'Guide to using ANSI.SYS'. Archived from the original on 2007-06-23. Retrieved 2017-09-11.
  5. ^ abcdPaul, Matthias R. (1997-07-30) [1994-05-01]. NWDOS-TIPs — Tips & Tricks rund um Novell DOS 7, mit Blick auf undokumentierte Details, Bugs und Workarounds. MPDOSTIP. Release 157 (in German) (3 ed.). Archived from the original on 2017-09-10. Retrieved 2014-08-06. (NB. NWDOSTIP.TXT is a comprehensive work on Novell DOS 7 and OpenDOS 7.01, including the description of many undocumented features and internals. It is part of the author's yet larger MPDOSTIP.ZIP collection maintained up to 2001 and distributed on many sites at the time. The provided link points to a HTML-converted older version of the NWDOSTIP.TXT file.) [1]
  6. ^'ANSI Keyboard codes - ANSI.SYS Key and Extended Key Codes'. µVGA - VGA Microcontroller interface. SECONS Ltd. 2012. Archived from the original on 2017-09-11. Retrieved 2017-09-11.
  7. ^Datalight, Inc.; GPvNO (April 2005) [1999]. 'Datalight ROM-DOS User's Guide'(PDF). Datalight, Inc. 3010-0200-0716. Retrieved 2018-09-16.
  8. ^'PTS-DOS 2000 Pro User Manual'(PDF). Buggingen, Germany: Paragon Technology GmbH. 1999. Archived(PDF) from the original on 2018-05-12. Retrieved 2018-05-12.
  9. ^Günther, Jens; Ernst, Tobias (2004-04-25) [1996]. Ellsässer, Wolfgang (ed.). 'Inoffizielle deutschsprachige PTS-DOS-FAQ (PTS/FAQD)' [Inofficial German PTS-DOS FAQ] (in German). Retrieved 2018-10-02.
  10. ^Massingill, Michael D. Pearson, Dave (ed.). 'PK SAFE ANSI (PKSFANSI.COM)'. Archived from the original on 2017-09-11. Retrieved 2017-09-11.
  11. ^Field, Tim (November 1983). 'Installable Device Drivers for PC DOS 2.0 - Inside the IBM PC'. BYTE. 8 (11): 188–196. Retrieved 2016-03-19.
  12. ^ abcd'Chapter 9: Configuring the System'. Caldera, Inc. 1998. Archived from the original on 2017-09-10. Retrieved 2017-09-10. (NB. DR-DOS 7 user documentation, description of ANSI.SYS escape sequences (incomplete))
  13. ^'Console Virtual Terminal Sequences'. Windows Console.

External links[edit]

  • 'In DOS, How Can I Modify My Prompt or the Screen Color?'. Indiana University. 2010-10-25. Archived from the original on 2017-09-11. Retrieved 2017-09-11.
  • Cambus, Frederic (2017-04-19). 'A set of tools for converting ANSi/BiN/ADF/iDF/TUNDRA/XBiN files into PNG images'. Archived from the original on 2017-09-11. Retrieved 2017-09-11.
Retrieved from 'https://en.wikipedia.org/w/index.php?title=ANSI.SYS&oldid=973359388'

version 3.04


NOTE! This page can be downloadedin text format. Also available in French.


During time I have assisted quite a lot of PC owners with the setupof their two system files CONFIG.SYS and AUTOEXEC.BAT. Often whenI stand in line in a computer store (I have seldom seen that there isn'ta waiting line), I have experienced that a great many of the problems,the customers complains about, are due to improper setup of these two files. Therefore I hereby pass on some advice about that subject.

Contents:

  • Before you begin !
  • MS-DOS 7.00 / 7.10 (Windows 95 & 98).
  • Windows 95 OSR2 and HIMEM.SYS.
  • DOSSTART.BAT (Windows 95 & 98).
  • WINSTART.BAT (Windows 95 & 98 and Windows 3.11).
  • MS-DOS 6.22 (Windows 3.11).
  • PC DOS 7.00 (IBM).
  • Windows 3.11.
  • More Upper Memory with EMM386.
  • Alternative Memory Managers (QEMM386).
  • Stacker disk compression.
  • Harddisk partitioning.
  • Windows 95 OSR2 and FAT32.

Before you begin !

Some of the following is very basic, while some of it is addressedto the experienced PC user.

Before you begin to change the CONFIG.SYS and AUTOEXEC.BAT files,you should do the following:

Format a floppy diskette with the command: FORMAT A: /U /S
Save copies of the original CONFIG.SYS and AUTOEXEC.BAT files
in a separate directory AND on the floppy diskette mentioned above.

This will always give you the possibility of starting the computerby inserting the floppy diskette in drive A:, then rebooting the computer.

If there are problems starting the computer, then as from DOS version6.00 you can press the F5 key, when the screen displays: Starting 'Windows9x...' ('Starting MS-DOS...'). This skips the executingof the CONFIG.SYS and AUTOEXEC.BAT files. Thereafter you can edit the line inone of these two files where the problem occurred. If instead the F8 key (plus4 in Windows 9x) is pressed, then the lines in CONFIG.SYS and AUTOEXEC.BAT will beexecuted one line at a time. This helps determining where the problems occurs.

MS-DOS 7.00 / 7.10 (Windows 95 & 98)

  • Windows 95 has DOS-version 7.00
  • Windows 95 OSR2 and Windows 98 has DOS-version 7.10

Under Windows 9x the following setup of CONFIG.SYS and AUTOEXEC.BATwill be suitable. This setup also ensures access to CD-ROM driveand soundcard in MS-DOS mode.

Before you begin to make alterations of CONFIG.SYS and AUTOEXEC.BAT,it will be suitable to change the setup, so that Windows 9x will not startautomatically, but there instead is started directly in DOS mode.

This is done by making the following changes under [Options] in thefile C:MSDOS.SYS:

NOTE!
It is important to use a texteditor (NOTEPAD.EXE or EDIT.COM) andNOT a wordprocessor (Word or WordPerfect) to edit the file, because awordprocessor spoils the file with unwanted code!

After this change the computer will start in MS-DOS 7.x, and theWindows 9x Logo (the one with the running colours beneath the picture)will not be shown during startup, making it possible to see how CONFIG.SYSand AUTOEXEC.BAT are executed.

Windows 9x can subsequently be started manually with the command: WIN

If for instance a DOS game will not run under a standard installationof Windows 9x, this can often be solved by disabling the automatic startof Windows 9x in this way, and then starting the program before loading Windows9x.

Once CONFIG.SYS and AUTOEXEC.BAT are optimized, the changes in MSDOS.SYScan be reversed, to reestablish the automatic start of Windows 9x and theLogo, if so wanted. Alternatively the command: WIN couldjust be inserted as the last line in AUTOEXEC.BAT.

The following example applies to a PC with:

(installed in C:WINDOWS & C:WINDOWSCOMMAND)
(installed in C:WINDOWS)
(installed in C:CTSND)
(installed in C:CDROM)
(installed in C:MOUSE)

The example are generally applicable, but line 13and line 24 must be edited, as the drivers for CD-ROMdrive and Mouse depends on the manufacturer.

The Lines with * can be omitted.

CONFIG.SYS
* 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

NUMLOCK=OFF
BREAK=ON
DOS=HIGH,UMB,NOAUTO
FILESHIGH=40
FCBSHIGH=1,0
BUFFERSHIGH=30,0
LASTDRIVEHIGH=J
STACKSHIGH=9,256
COUNTRY=045,865,C:WINDOWSCOMMANDCOUNTRY.SYS
DEVICE=C:WINDOWSHIMEM.SYS/V
DEVICE=C:WINDOWSEMM386.EXE RAM /MIN=0 I=B000-B7FF/V
DEVICEHIGH /L:2 =C:WINDOWSCOMMANDDISPLAY.SYS CON=(EGA,1)
DEVICEHIGH /L:2 =C:CDROMCDROM.SYS /D:MSCD000
DEVICEHIGH /L:2 =C:WINDOWSSETVER.EXE
DEVICEHIGH /L:1 =C:WINDOWSIFSHLP.SYS
SHELL=C:WINDOWSCOMMAND.COM C:WINDOWS /E:1024 /P


AUTOEXEC.BAT
* 17
18
19
20
21
22
23
24
* 25
26
27
* 28
29
30
31
32
33
34
* 35

@ECHO OFF
LH /L:2 C:WINDOWSCOMMANDMSCDEX /D:MSCD000 /M:15 /E /S /L:D /V
LH /L:0;2 /S C:WINDOWSCOMMANDSMARTDRV 2048 16 /V
C:WINDOWSCOMMANDMODE CON RATE=32 DELAY=2
C:WINDOWSCOMMANDMODE CON CP PREP=((865) C:WINDOWSCOMMANDEGA.CPI)
C:WINDOWSCOMMANDMODE CON CP SEL=865
LH /L:2 C:WINDOWSCOMMANDKEYB DK,865,C:WINDOWSCOMMANDKEYBOARD.SYS
LH /L:2 C:MOUSEMOUSE
LH /L:2 C:WINDOWSCOMMANDDOSKEY /INSERT
PROMPT $p$g
PATH C:WINDOWS;C:WINDOWSCOMMAND;C:CTSND
SET DIRCMD=/P /A
SET TEMP=C:WINDOWSTEMP
SET TMP=C:WINDOWSTEMP
SET SOUND=C:CTSND
SET BLASTER=A220 I5 D1 H5 P330 T6
SET MIDI=SYNTH:1 MAP:G
C:CTSNDDIAGNOSE /S
C:CTSNDSB16SET /P

  1. Switches off Num Lock on thekeyboard.
  2. Extends Control-C / Control Breakalso to work under I/O operations as for instance reading and writing ofthe disks.
  3. HIGH loads DOS buffers in HMA(requires a XMS manager, line 10).
    UMB allows the use of Upper Memory Blocks for resident drivers and programs(requires an EMS manager, line 11). This frees upmore conventional memory for your applications.
    NOAUTO makes it possible to load drivers and TSR programs in conventionalmemory, if wanted - otherwise DOS 7.x always tries to load in Upper Memory,even though DEVICEHIGH, FILESHIGH etc. has not been used. Some driverscan only work if loaded low with a DEVICE command.
  4. Sets the number of files thatcan be opened at one time to 40 (suitable for most instances, but someprograms insists on a larger number).
  5. Sets the minimal number of filecontrol blocks. Is only used by very old programs.
  6. Sets buffers to 30. Ifthe number is smaller there is a risk that it is NOT possible to 'Restartthe computer in MS-DOS mode' from Windows 95 (OSR2).
  7. Sets the last logical drive-letterto J:
  8. Sets stacks as Microsoft recommendsit for Windows 9x.
  9. Sets country to 45 (Denmark),with codepage 865 as the system character set i. e. the characterset that is used for sorting and conversion to and from capital letters. If no number is stated for the codepage, then the system codepage is setto 850 by default (for country 45), even though for instance codepage 865is chosen in line 22. Therefore the same codepageshould always be stated in line 9 and in line22 to avoid problems with access to files with names, in which charactersfrom the extended ASCII character set are used (character no. 128 to 255)i.e. ø and Ø.
  10. Loads the DOS XMS manager. Necessary for the next line and for Windows 9x and Smartdrive(line 19).
  11. Loads the DOS EMS manager. RAM indicates that both Expanded Memory (EMS) and Upper Memory (UMB) shouldbe made available. /MIN=0 states that no minimal amount of EMS memoryshall be secured. I=B000-B7FFindicates that the memory reserved for monochrome screens can be used asUpper Memory. If EMS memory is not wanted, the parameter RAM canbe changed to NOEMS, but from DOS 6.00 an above EMM386.EXEprovides both EMS and XMS memory for the programs, so there is no reasonnot to use the RAM parameter, unless there is a need for more UMB memoryand you don't have any programs that demands EMS memory. Many gamesrequires EMS.
  12. Loads the DOS EGA/VGA driverfor use of 1 codepage (character set) on the screen. In DOS 7.xmore memory is used for 2 codepages than for 1 codepage.
  13. Loads the driver for the CD-ROMdrive. Specific for the installed drive. Your driver mighthave another name. What is written after /D: must also be writtenafter /D: in line 18. Some other parameters mightalso be necessary i.e. a statement of the controller's address (/SBP:220or the like), if the drive is connected via the soundcard or a separatecontrollercard. If you haven't got a DOS CD-ROM driver, then youmight use the SAMPLE.SYS driver located at the Windows 95 installationdiskette. On the Windows 98 installation diskette is placed a largernumber of CD-ROM drivers, covering most CD-ROM drives.
  14. Reports an earlier versionof DOS (e.g. version 6.22) to older DOS-programs, if they demand to beexecuted under a definite DOS version.
  15. Loads the driver for Windows 9x's 32-bitfile access.
  16. States the name and location of the commandinterpreter. /E: states the size of the DOS environment. 1024 is suitable, as DOS 7.x automatically adds 1040 to the size which cannot beless than 256. /P indicates that the command interpreter shall stay residentand that AUTOEXEC.BAT shall be executed. /P may NOT be omitted.
  17. Hides the text in batch programswhen the batch file is executed.
  18. Loads the DOS CD-ROM extensionfor access to the CD-ROM drive. Requires that a CD-ROM driver (line13) with the same text after /D: is loaded. /M:15 states a suitableamount of buffers, and /E states that these buffer shall be loaded intoExpanded Memory (requires that an EMS manager is loaded, line11). /S indicates that the CD-ROM drive can be shared over anetwork, but is also necessary for some programs in order to make it possibleto read the volume label on the CD-ROM disks. /L:D indicates thatdrive-letter D shall be assigned to the CD-ROM drive. If /L: is omitted,the first free drive-letter is assigned to the CD-ROM drive.
  19. Loads the DOS Smartdrive disk cachefor faster reading and writing on the (hard)disks. When Smartdriveis loaded AFTERMSCDEX (line 18),the cache will also work for the CD-ROM drive. Requires that a XMS manageris loaded (line 10). 2048 states the amount of memoryin Kb that should be used under DOS, and 16 states the amount when runningWindows. The latter is set to the minimum value, because Windows 9x hasits own 32-bit disk cache.
  20. Increases the typematic rateand delay for the keyboard.
  21. Prepares Danish/Norwegian(865) codepage (character set) for the screen. Requires thatDISPLAY.SYS is loaded (line 12). C:DOSEGA.CPI can be replaced with the name of another codepage informationfile, for instance C:DOS865.CPI under IBM's PC DOS.
  22. Selects Danish/Norwegiancodepage (character set) for the screen. Requires that line21 is executed.
  23. Loads the keyboard driver,configurated for a Danish keyboard with support for codepage 865.
  24. Loads the Mouse driver. Your driver might have another name. The drivers from Microsoft andIBM uses a lot of memory - try to get another driver if you have one providedby Microsoft or IBM.
  25. Loads DOSKey, which enablesfast recalling and editing of the command line at the DOS prompt. Can be omitted.
  26. Set the DOS prompt to show thecurrent directory followed by the character >.
  27. PATH indicates in which directories andin which order programs shall be searched for, when no path is stated before theprogram name. Many programs inserts their own path in this line during programsetup, but in the most instances this is not necessary. Try removingthe program path and check if the program can work without it. Along PATH can slow down the start of the programs onthe computer. The PATH line can not contain more then 127 characters. Furthermore the length of the PATH is limited by the size of the DOSenvironment (line 16).
  28. Sets the DOS DIR commandfor pausing, when the screen becomes full, and to display all files includinghidden and system files.
  29. States in which directory temporaryfiles can be placed by the applications. This makes it much easierto find files that are not removed due to program errors. Quite a lotof megabytes can be saved by deleting the files in this directory from time totime. Do NOT delete these files, while Windows is running - some of themmight be in use.
  30. States in which directory temporaryfiles can be placed by the applications (older programs).
  31. States where the files for theSound Blaster soundcard are installed.
  32. States that the soundcard isinstalled at Address 220 with IRQ 5, Low DMA on DMA-channel 1, HighDMA on DMA-channel 5, MIDI address 330 and that the soundcard is Type 6(Sound Blaster 16 compatible).
  33. Indicates how MIDI-fileshas to be played. MAP:G makes sure that both basic MIDI and extendedMIDI can be played in DOS.
  34. Sets the soundcard to the valuesin line 32.
  35. Sets the volumelevel forthe different channels of the soundcard according to the values saved inthe file C:CTSNDCTMIX.CFG by means of the program C:CTSNDSB16SET.EXE. Can be omitted.

/L: indicates in which UMB block the driver/programshall be loaded.

/V indicates that the driver/program shalldisplay extended information on the screen when loading.

If the Upper Memory in the address interval C800 to EFFF is unbroken,it should now, depending on the memory requirements for the CD-ROM and Mousedrivers, be possible to load all drivers and resident programs in UpperMemory, giving approximately 625 Kb free memory (can be checked with thecommand: MEM /C).

An unbroken Upper Memory area is among other depending on the computersBIOS, the installed videocard and other plug-in cards installed in the computer.

NOTE!
The order of the lines should not be altered. The order aboveprovides the best utilization of the Upper Memory.
When DOS is finished loading the drivers stated in CONFIG.SYS, it loadsthe FILES, FCBS, BUFFERS, LASTDRIVE and STACKS. DOS continues to loadthese into the same UMB as the last device was loaded into. This givesa way of controlling where the FILES etc. are loaded. In the exampleabove, the last device: IFSHLP.SYS is loaded into UMB 1, and therefore FILESetc. are also loaded into UMB 1. If the values for FILES etc. are setas in the example above, then the available memory in UMB 1 will just barelybe used (at least with the Danish versions of Windows 9x). ThereafterCOMMAND.COM will be loaded where there is free memory - in this instance intoUMB 2.

If there is not 625 Kb of free memory, the MEMMAKER program can betried, but this program cannot always improve the memory utilization, andsome times it becomes worse.

Also look at the chapter: More Upper Memorywith EMM386.

More commands for use in CONFIG.SYS and AUTOEXEC.BAT can be seen inthe chapter: MS-DOS 6.22 (Windows 3.11).

Windows 95 OSR2 and HIMEM.SYS

If you are using one of the FIRST German or Danish (and probablysome other non-US versions) of the OEM Service Release 2 (OSR2) version ofWindows 95, there is an ERROR in the IO.SYS system file, which preventsHIMEM.SYS from loading in the HMA area, leading HIMEM.SYS to use 45 Kb ofconventional memory instead of 1 Kb.

You can downloadthe IO2PATCH.EXE program here. This program fixes the problem. Justput the IO2PATCH.EXE file in the root of your bootup drive (usually C:), where theIO.SYS system file is placed, execute the IO2PATCH program, and then the problem shouldbe fixed.

DOSSTART.BAT (Windows 95 & 98)

Whenever it is chosen to 'Restart the computer in MS-DOS mode' when closing Windows9x, the file C:WINDOWSDOSSTART.BAT is searched for, and the lines herein are executed,if this file exists.

During installation of Windows 9x some lines are often moved from AUTOEXEC.BATto DOSSTART.BAT, so it is essential to check that none of the drivers and TSR programsloaded from AUTOEXEC.BAT are loaded by DOSSTART.BAT as well.

The CD-ROM extension MSCDEX is one of theprograms that Windows 9x often moves to DOSSTART.BAT. This is done in order forWindows 9x to use its 32-bit driver for the CD-ROM drive, but if access to the CD-ROMdrive is wanted before starting Windows 9x (e.g. if automatic startof Windows 9x is disabled, as earlier described), then MSCDEX HAS to be loadedfrom AUTOEXEC.BAT and therefore should be deleted from the DOSSTART.BAT file. Windows 9x's 32-bit CD-ROM driver should be a little faster than a 16-bit DOS driver,but some programs cannot run with the 32-bit driver.

However, if it is chosen to load MSCDEX from DOSSTART.BAT, thenSMARTDRV should be moved hereto as well,in order to obtain caching of the CD-ROM drive. Otherwise SMARTDRVwould be loaded before MSCDEX, causing the CD-ROM drive not to becached. The DOSSTART.BAT file should then look like this:

DOSSTART.BAT
1
2
3

@ECHO OFF
LH /L:2 C:WINDOWSCOMMANDMSCDEX /D:MSCD000 /M:15 /E /S /L:D /V
LH /L:0;2 /S C:WINDOWSCOMMANDSMARTDRV 2048 16 /V

and line 18 and line 19should be deleted from AUTOEXEC.BAT.

WINSTART.BAT (Windows 95 & 98 and Windows 3.11)

Windows looks for the file C:WINDOWSWINSTART.BAT before starting. So, if you for any reason want to run any programs or commands before startingWindows, you can put them into this file. Unlike DOSSTART.BAT, WINSTART.BATis also executed by Windows 3.11.

MS-DOS 6.22 (Windows 3.11)

The following example applies to a PC with:

MS-DOS 6.22
Windows 3.11
Soundblaster soundcard
CD-ROM drive
Mouse

(installed in C:DOS)
(installed in C:WINDOWS)
(installed in C:SB16)
(installed in C:CDROM)
(installed in C:MOUSE)

but will also work with MS-DOS 6.00 / 6.20 or PC DOS 6.30 / 7.00.

The example are generally applicable, but line 15and line 26 must be edited, as the drivers for CD-ROMdrive and Mouse depends on the manufacturer.

The Lines with * can be omitted.

CONFIG.SYS
* 1
2
3
4
5
6
7
8
9
10
11
* 12
13
14
15
16

NUMLOCK=OFF
BREAK=ON
DOS=HIGH,UMB
FILES=40
FCBS=1,0
BUFFERS=10,0
LASTDRIVE=J
STACKS=9,256
COUNTRY=045,865,C:DOSCOUNTRY.SYS
DEVICE=C:DOSHIMEM.SYS/V
DEVICE=C:DOSEMM386.EXE RAM /MIN=0 I=B000-B7FF/V
DEVICEHIGH /L:1 =C:DOSANSI.SYS
DEVICEHIGH /L:1 =C:DOSDISPLAY.SYS CON=(EGA,2)
DEVICEHIGH /L:1 =C:WINDOWSIFSHLP.SYS
DEVICEHIGH /L:2 =C:CDROMCDROM.SYS /D:MSCD000
SHELL=C:DOSCOMMAND.COM C:DOS /E:1024 /P


AUTOEXEC.BAT
* 17
18
* 19
20
21
22
23
24
* 25
26
* 27
* 28
* 29
30
31
* 32
33
34
35
36
37
38
39
* 40

@ECHO OFF
LH /L:2 C:DOSMSCDEX /D:MSCD000 /M:15 /E /S /L:D /V
ECHO.
LH /L:0;2 /S C:DOSSMARTDRV 2048 128 /V
C:DOSMODE CON RATE=32 DELAY=2
C:DOSMODE CON CP PREP=((865 850) C:DOSEGA.CPI)
C:DOSMODE CON CP SEL=865
LH /L:2 C:DOSKEYB DK,865,C:DOSKEYBOARD.SYS
ECHO.
LH /L:2 C:MOUSEMOUSE
LH /L:1 C:DOSDOSKEY /INSERT
ECHO.
LH /L:2 C:DOSNLSFUNC C:DOSCOUNTRY.SYS
PROMPT $_ $e[1;37;41m-|--$e[33;40m $p$g
PATH C:DOS;C:WINDOWS;C:SB16
SET DIRCMD=/P /A
SET TEMP=C:TEMP
SET TMP=C:TEMP
SET TZ=CET-1CDT,3,-1,0,7200,10,-1,0,10800,3600
SET SOUND=C:SB16
SET BLASTER=A220 I5 D1 H5 P330 T6
SET MIDI=SYNTH:1 MAP:G
C:SB16DIAGNOSE /S
C:SB16SB16SET /P

  1. Switches off Num Lock on thekeyboard.
  2. Extends Control-C / Control Breakalso to work under I/O operations as for instance reading and writing ofthe disks.
  3. HIGH loads DOS buffers in HMA(requires a XMS manager, line 10). UMB allowsthe use of Upper Memory Blocks for resident drivers and programs (requiresan EMS manager, line 11). This frees up more conventionalmemory for your applications.
  4. Sets the number of files thatcan be opened at one time to 40 (suitable for most instances, but someprograms insists on a larger number).
  5. Sets the minimal number of file controlblocks. Is only used by very old programs.
  6. Sets buffers to 10, which isappropriate, when Smartdrive (line 20) is used.
  7. Sets the last logical drive-letterto J:
  8. Sets stacks as Microsoft recommendsit for Windows 3.11.
  9. Sets country to 45 (Denmark),with codepage 865 as the system character set i. e. the characterset that is used for sorting and conversion to and from capital letters. If no number is stated for the codepage, then the system codepage is setto 850 by default (for country 45), even though for instance codepage 865is chosen in line 23. Therefore the same codepageshould always be stated in line 9 and in line23 to avoid problems with access to files with names, in which charactersfrom the extended ASCII character set are used (character no. 128 to 255)i.e. ø and Ø.
  10. Loads the DOS XMS manager. Necessary for the next line and for Windows 3.11 and Smartdrive(line 20).
  11. Loads the DOS EMS manager. RAM indicates that both Expanded Memory (EMS) and Upper Memory (UMB) shouldbe made available. /MIN=0 states that no minimal amount of EMS memoryshall be secured. I=B000-B7FFindicates that the memory reserved for monochrome screens can be used asUpper Memory. With Windows 3.11 the use of I=B000-B7FF requires thefollowing line in C:WINDOWSSYSTEM.INI:
    [386Enh]
    device=c:dosmonoumb.386
    NOTE! If you don't have the file MONOUMB.386, then I=B000-B7FF canNOT be used, if Windows is to be run. In that case all instancesof /L:2 must be changed to /L:1. You can downloadMONOUMB.386 here.
    If EMS memory is not wanted, the parameter RAM can be changed to NOEMS,but from DOS 6.00 an above EMM386.EXE provides bothEMS and XMS memory for the programs, so there is no reason not to use theRAM parameter, unless there is a need for more UMB memory and you don'thave any programs that demands EMS memory. Many games requires EMS.
  12. Loads the DOS ANSI driver,which among other makes manipulating of the colours in the DOS prompt (line30) possible. Can be substituted with an ANSI driver specificto the installed videocard. DOS's ANSI.SYS uses a lot of memory. Can be omitted. Some older programs requires an ANSI driver.
  13. Loads the DOS EGA/VGA driverfor use of up to 2 codepages (character sets) on the screen. In DOS6.22 no more memory is used for 2 codepages than for 1 codepage.
  14. Loads the driver for Windows 3.11's 32-bitfile access.
  15. Loads the driver for the CD-ROMdrive. Specific for the installed drive. Your driver mighthave another name. What is written after /D: must also be writtenafter /D: in line 18. Some other parameters mightalso be necessary i.e. a statement of the controller's address (/SBP:220or the like), if the drive is connected via the soundcard or a separatecontrollercard.
  16. States the name and location of the commandinterpreter. /E: states the size of the DOS environment. 512 or 1024 is suitable. If the number is smaller then some programsand batch-files might not run. /P indicates that the command interpretershall stay resident and that AUTOEXEC.BAT shall be executed. /P mayNOT be omitted.
  17. Hides the text in batch programswhen the batch file is executed.
  18. Loads the DOS CD-ROM extensionfor access to the CD-ROM drive. Requires that a CD-ROM driver (line15) with the same text after /D: is loaded. /M:15 states a suitableamount of buffers, and /E states that these buffer shall be loaded intoExpanded Memory (requires that an EMS manager is loaded, line11). /S indicates that the CD-ROM drive can be shared over anetwork, but is also necessary for some programs in order to make it possibleto read the volume label on the CD-ROM disks. /L:D indicates thatdrive-letter D shall be assigned to the CD-ROM drive. If /L: is omitted,the first free drive-letter is assigned to the CD-ROM drive.
  19. Inserts a blank line (rememberthe period after ECHO).
  20. Loads the DOS Smartdrive disk cachefor faster reading and writing on the (hard)disks. When Smartdriveis loaded AFTERMSCDEX (line 18),the cache will also work for the CD-ROM drive. Requires that a XMS manageris loaded (line 10). 2048 states the amount of memoryin Kb that should be used under DOS, and 128 states the amount when runningWindows. 128 Kb is recommended when 32-bit file accessis used, otherwise 2048 will be proper (having 8 Mb RAM or more).
  21. Increases the typematic rate anddelay for the keyboard.
  22. Prepares Danish/Norwegian (865)and international (850) codepage (character set) for the screen. Requires that DISPLAY.SYS is loaded (line13). C:DOSEGA.CPI can be replaced with the name of anothercodepage information file, for instance C:DOS865.CPI under IBM's PC DOS.
  23. Selects Danish/Norwegian codepage(character set) for the screen. Requires that line22 is executed.
  24. Loads the keyboard driver,configurated for a Danish keyboard with support for codepage 865.
  25. Inserts a blank line.
  26. Loads the Mouse driver. Your driver might have another name. The drivers from Microsoft andIBM uses a lot of memory - try to get another driver if you have one providedby Microsoft or IBM.
  27. Loads DOSKey, which enablesfast recalling and editing of the command line at the DOS prompt. Can be omitted.
  28. Inserts a blank line.
  29. Loads national language support,which makes it possible to change the codepage with the command: CHCP. If C:DOSCOUNTRY.SYS is not stated, the country information file statedat COUNTRY= in CONFIG.SYS (line9) is used. Can be omitted.
  30. Makes a little fun with the DOSprompt. Requires that an ANSI driver (line12) is loaded. The cross is made by holding down the ALT keyand typing 196 and 197 on the numeric keypad at the right side of the keyboard(not all text editors supports this). Alternatively the prompt canjust be set to: $p$g
  31. PATH indicates in which directories andin which order programs shall be searched for, when no path is stated before theprogram name. Many programs inserts their own path in this line during programsetup, but in the most instances this is not necessary. Try removingthe program path and check if the program can work without it. Along PATH can slow down the start of the programs onthe computer. The PATH line can not contain more then 127 characters. Furthermore the length of the PATH is limited by the size of the DOS environment(line 16).
  32. Sets the DOS DIR command forpausing, when the screen becomes full, and to display all files includinghidden and system files.
  33. States in which directory temporaryfiles can be placed by the applications. This makes it much easierto find files that are not removed due to program errors. Quite a lotof megabytes can be saved by deleting the files in this directory from time totime. Do NOT delete these files, while Windows is running - some of themmight be in use.
  34. States in which directory temporaryfiles can be placed by the applications (older programs).
  35. Sets the timezone to GMT-1(Central European Time), with correction for Daylight Saving Time. Used by E-mail programs and News readers.
  36. States where the files for theSound Blaster soundcard are installed.
  37. States that the soundcard is installedat Address 220 with IRQ 5, Low DMA on DMA-channel 1, High DMA on DMA-channel5, MIDI address 330 and that the soundcard is Type 6 (Sound Blaster 16 compatible).
  38. Indicates how MIDI-files hasto be played. MAP:G makes sure that both basic MIDI and extendedMIDI can be played in DOS.
  39. Sets the soundcard to the valuesin line 37.
  40. Sets the volumelevel for thedifferent channels of the soundcard according to the values saved in thefile C:SB16CTMIX.CFG by means of the program C:SB16SB16SET.EXE. Can be omitted.

/L: indicates in which UMB block the driver/programshall be loaded.

/V indicates that the driver/program shalldisplay extended information on the screen when loading.

If the Upper Memory in the address interval C800 to EFFF is unbroken,it should now, depending on the memory requirements for the CD-ROM and Mousedrivers, be possible to load all drivers and resident programs in UpperMemory, giving approximately 611 Kb free memory (can be checked with thecommand: MEM /C).

An unbroken Upper Memory area is among other depending on the computersBIOS, the installed videocard and other plug-in cards installed in the computer.

NOTE!
The order of the lines should not be altered. The order aboveprovides the best utilization of the Upper Memory.

If there is not 611 Kb of free memory, the MEMMAKER program can betried, but this program cannot always improve the memory utilization, andsome times it becomes worse. Especially KEYB.COMcan cause problems.

Also look at the chapter: More Upper Memorywith EMM386.

PC DOS 7.00 (IBM)

The setup above will work with IBM's DOS as well. The residentprograms in version 7.00 typically uses a little lesser memory than theones of MS-DOS 6.22, and IBM's DOS versions are translated to Danish. The translation is awful in places and even more difficult to understandthan the original English, but that goes for the Danish Microsoft MS-DOSversion 7.x (Windows 9x) too.

Under PC DOS, the program RAMBOOST can be used for memory optimization,but this program isn't flawless either, and it is furthermore a residentprogram consuming memory itself.

Note that PC DOS's Smartdrive 5.00 not as standarduses write cache as MS-DOS's Smartdrive does. To obtain write caching,the drives to be cached has to be stated succeeded by a + (SMARTDRV C+D+ E+ etc.).

PC DOS's Smartdrive 5.00 indicates that CD-ROM drives are cached. Tests with CD-Bench 1.07 states that this is not the fact when using PCDOS's MSCDEX.EXE 2.25, whereas CD-ROM drives are cachedunder PC DOS if MS-DOS's MSCDEX.EXE is used.

Windows 3.11

If a DOS version above DOS 5.00 is used, then the versions ofHIMEM.SYS, EMM386.EXE andSMARTDRV.EXE installed by Windows in C: shouldNOT be used. Use the corresponding files in the DOSdirectory instead.

It can be suitable or necessary to add the following lines tothe SYSTEM.INI file in the Windows directory:

SYSTEM.INI

1
2
3

[386Enh]
device=monoumb.386
SystemROMBreakPoint=FALSE
MaxBPs=768

  1. If the EMM386 Memory Manager is used with the parameterI=B000-BFFF, then the MONOUMB.386 device driver HAS to beused. MONOUMB.386 can be downloadedhere.
  2. If Quarterdeck's QEMM386 MemoryManager is used, then SystemROMBreakPointHAS to be set to FALSE.
  3. Increases the maximum breakpoints that can beused by the Virtual Memory Manager (VMM) from 200 to 768. This can improve Windows'performance.

More Upper Memory with EMM386

If there is not enough Upper Memory for all drivers and TSR programs,then line 11 can be extended to:

DEVICE=C:DOSEMM386.EXE RAM I=B000-B7FF HIGHSCAN FRAME=C800/MIN=0 /V

HIGHSCAN tells the Memory Manger to search the system area (F000-FFFF)for unused memory, and FRAME=C800 places the page frame in the start of UpperUpper Memory Block number 2 (UMB 2), and thereby increases the probability foran unbroken UMB 2 from D000 and up.

Depending on the BIOS this might cause the computer to hang during bootup! First try removing the FRAME=C800 statement. This might lead to a third UMB blockplaced after the page frame. If this is the case, some of the drivers and/or TSRprograms must be loaded into UMB 3 using a DEVICEHIGH /L:3 = or a LH /L:3 statement. If removing the FRAME=C800 statement still causes the computer to hang,then the HIGHSCAN statement must be removed as well. Then it is not likely thatany more Upper Memory can be gained using EMM386

It is possible that the computer works alright in DOS, but that Windows 9x cannotstart when HIGHSCAN is used.

If HIGHSCAN cannot be used, then perhaps an alternative Memory Manager can be usedinstead to obtain more Upper Memory.

Alternative Memory Managers (QEMM386)

If there is a demand for more Upper Memory, an investment can bemade in an alternative Memory Manager, as for instance QuarterdecksQEMM386. This manager can typically give 32 Kb or more extra UpperMemory, an DOS will typically run 20% faster than with the Memory Managerprovided by MS-DOS or PC DOS!!!

I use QEMM386 v. 8.03 with MS-DOS 6.22 myself, and my CONFIG.SYS,AUTOEXEC.BAT and DOS-UP.DAT files looks like the following. Here might be something to obtain for other QEMM386 users. The setup alsoshows how to make a startup menu with two configurations - one for running withQEMM386, which starts by default after 2 seconds, and one for running with EMM386:

Edit Config Sys Windows 10

CONFIG.SYS
[menu]
MENUITEM=qemm,Start med Quarterdeck Memory Manager
MENUITEM=emm,Start med Microsoft Memory Manager
MENUDEFAULT=qemm,2
MENUCOLOR=7,0
[common]
NUMLOCK=OFF
BREAK=ON
DOS=HIGH,UMB
FILES=90
FCBS=1,0
BUFFERS=10,0
LASTDRIVE=J
STACKS=9,256
COUNTRY=045,865,C:DOSCOUNTRY.SYS
[qemm]
DEVICE=C:QEMMDOSDATA.SYS
DEVICE=C:QEMMQEMM386.SYS R:1 RAM
DEVICE=C:QEMMDOS-UP.SYS @C:DOS-UP.DAT
DEVICE=C:QEMMLOADHI.SYS /R:2 C:QEMMQDPMI.SYS SWAPFILE=DPMI.SWP SWAPSIZE=1024
DEVICE=C:QEMMLOADHI.SYS /R:1 C:VIDEOEANSI.SYS
DEVICE=C:QEMMLOADHI.SYS /R:1 C:DOSDISPLAY.SYS CON=(EGA,2)
DEVICE=C:QEMMLOADHI.SYS /R:1 C:WINDOWSIFSHLP.SYS
DEVICE=C:QEMMLOADHI.SYS /R:2 C:CDROMTEAC_CDI.SYS /D:MSCD000
DEVICE=C:QEMMLOADHI.SYS /R:2 C:SB16DRVCTSB16.SYS /UNIT=0 /BLASTER=A:220 I:5 D:1 H:5
DEVICE=C:QEMMLOADHI.SYS /R:2 C:SB16DRVCTMMSYS.SYS
DEVICE=C:QEMMLOADHI.SYS /R:2 C:DOSINTERLNK.EXE /AUTO /LPT1 /NOPRINTER
rem DEVICE=C:QEMMLOADHI.SYS /R:2 C:DOSRAMDRIVE.SYS 32767 /E
SHELL=C:QEMMLOADHI.COM /R:2 C:DOSCOMMAND.COM C:DOS /E:2048 /P
[emm]
DEVICE=C:DOSHIMEM.SYS /TESTMEM:OFF /V
DEVICE=C:DOSEMM386.EXE RAM I=B000-B7FF I=C800-EFFF HIGHSCAN FRAME=C800 /MIN=0 /V
DEVICEHIGH /L:1 =C:VIDEOEANSI.SYS
DEVICEHIGH /L:1 =C:DOSDISPLAY.SYS CON=(EGA,2)
DEVICEHIGH /L:1 =C:WINDOWSIFSHLP.SYS
DEVICEHIGH /L:1 =C:CDROMTEAC_CDI.SYS /D:MSCD000
DEVICEHIGH /L:2 =C:SB16DRVCTSB16.SYS /UNIT=0 /BLASTER=A:220 I:5 D:1 H:5
DEVICEHIGH /L:2 =C:SB16DRVCTMMSYS.SYS
DEVICEHIGH /L:2 =C:DOSINTERLNK.EXE /AUTO /LPT1 /NOPRINTER
SHELL=C:DOSCOMMAND.COM C:DOS /E:2048 /P

AUTOEXEC.BAT
@ECHO OFF
ECHO.
C:DOSMODE CON RATE=32 DELAY=2
C:DOSMODE CON CP PREP=((865 850) C:DOSDK.CPI)
C:DOSMODE CON CP SEL=865
ECHO.
GOTO %CONFIG%
:qemm
C:QEMMLOADHI /R:2 C:DOSMSCDEX /D:MSCD000 /M:18 /E /S /L:G /V
ECHO.
C:QEMMLOADHI /R:2 /LO C:DOSSMARTDRV 2048 128 /V
C:QEMMLOADHI /R:2 C:DOSKEYB DK,865,C:DOSKEYBOARD.SYS
ECHO.
C:QEMMLOADHI /R:2 C:MOUSEMSCMOUSE /1 /A3
C:QEMMLOADHI /R:2 C:DOSDOSKEY /INSERT
C:QEMMLOADHI /R:2 C:DOSNLSFUNC C:DOSCOUNTRY.SYS
ECHO.
GOTO common
:emm
LH /L:2 C:DOSMSCDEX /D:MSCD000 /M:18 /E /S /L:G /V
ECHO.
LH /L:0;2 /S C:DOSSMARTDRV 2048 128 /V
ECHO.
LH /L:2 C:MOUSEMSCMOUSE /1 /A3
LH /L:2 C:DOSKEYB DK,865,C:DOSKEYBOARD.SYS
LH /L:2 C:DOSDOSKEY /INSERT
LH /L:2 C:DOSNLSFUNC C:DOSCOUNTRY.SYS
ECHO.
:common
PROMPT $_ $e[1;37;41m-|--$e[33;40m $p$g
PATH C:DOS;C:QEMM;D:WINDOWS;C:BAT;C:NORTON;C:TOOLS;C:PCTOOLS
SET DIRCMD=/P /A
SET TEMP=E:TEMP
SET TMP=E:TEMP
SET SVGA=/g
SET AUTOBASE=/LYD18 /COM2
SET SOUND=C:SB16
SET BLASTER=A220 I5 D1 H5 P330 T6
SET MIDI=SYNTH:1 MAP:G
SET PCTOOLS=C:PCTOOLSDATA
SET TZ=CET-1CDT,3,-1,0,7200,10,-1,0,10800,3600
SET IEPPP=C:IEXPLORE
SET PCTCP=C:IEXPLOREPCTCP.SHV
SET PATH=%PATH%;C:IEXPLORE
C:VIDEOVMODE 640-72
C:VIDEOVMODE 800-72
C:VIDEOVMODE 1024-70
C:VIDEOVMODE 1280-60
C:SB16SB16SET /P
C:NORTONTM START /N
C:TOOLSAUTOTIME /EU
C:TOOLSPRINTCP /Q
C:AUTOBASEAUTOBASE /HUSK+
CALL C:BATBOOTLOG
CALL C:BATSTART
CALL C:BATMENU

DOS-UP.DAT
DOSDATA=1
FILES=1
FCBS=1
LASTDRIV=1
INSTALL=1
STACKS=1
WKBUFFER=1
IFS=1


In this file it is stated in which UMB, FILES, BUFFERS etc.
shall be loaded. This gives an opportunity of manually filling
up small unused UMB areas
IFS= only works with MS-DOS 7.x

This results in 632 Kb free memory with QEMM386 and 607 Kb free memorywith EMM386.

Furthermore there is now room in Upper Memory for the two driversC:SB16DRVCTSB16.SYS andC:SB16DRVCTMMSYS.SYS, whichmakes it possible to playback WAV, MID, CMF and VOC soundfiles underDOS, using the program C:SB16PLAY.EXE. These drivers are providedwith the Sound Blaster 16 soundcard.

If there is not enough Upper Memory for all drivers and residentprograms, the line: DEVICE=C:QEMMQEMM386.SYSR:1 RAM can be expanded with the parameter: ST:F (safest) orST:M (this should be tested with the Quarterdeck OPTIMIZE program).

If DoubleSpace, DriveSpace or Stacker disk compressionis used, then the parameter: DBF=2 HAS to be added tothe line mentioned above.

If there is not 632 Kb of free memory with QEMM386, the OPTIMIZE programcan be tried, but this program cannot always improve the memory utilization,and some times it becomes worse. Especially KEYB.COMcan cause problems.

If the computer hangs under startup after an apparently successfulOPTIMIZE, it might be because OPTIMIZE has added squeezing to the LOADHIprocedure for some of the programs. Boot again and press F5. Then run the following command: C:QEMMOPTIMIZE /NOSQT /NOSQF. This starts OPTIMIZE with Temporary- and Frame squeezing turned off.

If version 7.x of Quarterdeck is used, it can not be recommendedto use DEVICE=C:QEMMDOSDATA.SYS,because there will be SO MUCH free memory, that some programs (Windows,among others) refuses to start. In most instances you can circumventthis by starting the programs with the MS-DOS LOADFIX program. Version8.x of Quartedeck seems to take hand of the problem by itself.

Stacker disk compression

If Stacker version 3.x or 4.x is used, the following can be enteredinto CONFIG.SYS, AUTOEXEC.BAT and STACKER.INI. Stacker is presumed installed in C:STACKER, and there is two physicalharddisks (C: and D:).

CONFIG.SYS
.
.
DEVICE=C:QEMMQEMM386.SYS R:1 RAM DBF=2ST:F
DEVICE=C:QEMMDOS-UP.SYS @C:QEMMDOS-UP.DAT
DEVICE=C:QEMMLOADHI.SYS /R:2 C:STACKERSTACHIGH.SYS
.
.

ST:F for more UMB.
Loads Stacker in UMB.

AUTOEXEC.BAT
.
.
C:QEMMLOADHI /R:2 /LO C:DOSSMARTDRV 2048 128 /V
C:STACKERCHECK /WP
.
.


Checks the Stacker drives.

STACKER.INI
/DIR=C:STACKER
/P=1
/EMS
/-AUTO
/Q-
C:STACVOL.DSK,SW
D:STACVOL.DSK,SW

States in which directory Stacker is installed.
Sets the compression to minimum (fastest).
Loads the Stacker buffers in EMS (64 Kb).
Turns off automatic stacking of floppy-drives.
Turns on displaying the loading of the Stacker drives.
States the name of the 1.st Stacker file and swaps drive C: and E:
States the name of the 2.nd Stacker file and swaps drive D: and F:

The Quarterdeck parameter: DBF=2HAS to be used with Stacker.

It is best to use Stacker with minimum compression, and then at regularintervals run a full optimization with maximal compression by means ofthe command: C:STACKERSDEFRAG /R /SU. This may last up to1 hour for a Stacker file of 512 Mb.

With Stacker 4.x the DEVICE=C:STACKERDPMS.EXE statement can beused in CONFIG.SYS to create DPMS memory, in which Stacker can be loaded,but this might cause problems with other programs as for instance PKZIPor QEMM386 with Stealth (ST:F / ST:M). DPMS can also NOT be used if 32-bit file access to the compresseddrives is wanted under Windows. So if EMS memory is available, it isbetter to use this, than to use DPMS memory.

Harddisk partitioning

If you do not want to compress your harddisk, you can often obtainmore space by partitioning the disk by means of the program FDISK.EXE. This reduces the amount of space wasted by each of the files on the disk.

The amount of wasted space is among other things dependent on thesize of the disk, as the waste is bigger on large disks, because DOS hasto use larger clusters (allocation units) on large disks than on smalldisks.

One file always takes up a whole number of clusters, and thereforea file of just 1 byte will use 16.384 bytes = 1 cluster on a harddisk of1023 Mb and 32.768 bytes on a harddisk bigger than 1023 Mb! The averagewaste of space on a harddisk bigger than 1023 Mb will be 40% !!, whilethe waste on a harddisk between 512 and 1023 Mb will be 20%, and on a harddiskof 511 Mb it will only be about 10%. Smaller files typically resultsin more waste of space, as do large numbers of directories and subdirectories,because these also occupy 1 cluster each.

If you have 2 harddisks, both partitioned to 2 drives, then the firstharddisk (harddisk 0) will contain the logical drives C: and E:, whilethe other harddisk (harddisk 1) will contain the logical drives D: andF: after the partitioning. During the partitioning it is importantto remember to set the primary partition on disk 0 to be the active partition,otherwise drive C: will not be bootable

NOTE!
By using FDISK all data on the harddisk are lost, so before usingFDISK all data has to be BACKED UP, ready for reinstalling afterwards.
After running FDISK the drives has to be formatted again. Drive C:is formatted with the command: A:FORMAT C: /U /S while theother drives are formatted with the command: A:FORMAT drive: /U
Don't forget to make a bootable diskette before the partitioning by meansof the command: FORMAT A: /U /S and to copy the files FDISK.EXEand FORMAT.COM to this diskette. Other files that should be copiedto the boot diskette are: SYS.COM, CHKDSK.EXE, KEYB.COM, KEYBOARD.SYS,ATTRIB.EXE and MEM.EXE.

Commercial- and shareware-programs that can make disk partitioningwithout loss of data are available, for example PowerQuest'sPartitionMagic.

Windows 95 OSR2 and FAT32

The OEM Service Release 2 (OSR2) version of Windows 95 uses FAT32 insteadof the previously used FAT16 file system. FAT32 uses smaller clusters(typically 4.096 bytes) and supports harddisk partitions of a size up to 2 Terrabytes(2048 Gb), whereas FAT16 only could handle harddisk partitions with sizes up to 2 Gb.

Edit Config Sys Windows 10 Pro

Because of the smaller clustersize used by FAT32, there is no longer thesame need for harddisk partitioning in order of reducing the amount of wasteddisk space. However, if you have a large harddisk (4 Gb or more), harddiskpartitioning can still give you a better overview of your folders and files.

OEM stands for: 'Original Equipment Manufacturer', which means thatthe OSR2 version of Windows 95 can only be purchased in conjunction with buying anew computer (or sometimes when buying a new harddisk).

NOTE!
You can NOT just update an existing Windows 95 with the OSR2 version. Because of FAT32 the harddisk has to be partitioned and formatted again, and Windows 95and all your applications has to be reinstalled.

Edit Config Sys Windows 10

With Windows 98 it is possible to convert a FAT16 partition to FAT32.


Have fun

NOTE! This page can be downloadedin text format. Also available in French.


17662

Coments are closed