Windows Legacy OS forum

General discussion

Config.sys Commands

Viglen Contender P3 550 - 256 RAM - 40Gig + 10Gig HDDs - 1 CD + 1 CD Burner - Windows 98se
I am now building a HP Vectra P3 1.3Ghz - 512 RAM - 80Gig HDD 1 CD + 1 CD Burner - Windows 98se
I also run 8meg Broadband (which usually runs at 3.5 megs at best)

The following is a copy of my present config.sys file

I'm in the UK, hence the 044 Country command. To avoid unwanted commands in memory I use the NOAUTO command and then manually add Himem.sys and IFSHLP.sys.

I have read several conflicting articles about Files, Stacks, Buffers and FCBS - many of these articles seem to refer to the old DOS6 days - eg. modern programs don't need Stacks and FCBS etc.

DEVICE=C:\WINDOWS\HIMEM.SYS
DOS=HIGH,NOUMB,NOAUTO
SWITCHES=/F
FILESHIGH=40
BUFFERSHIGH=10,0
LASTDRIVEHIGH=I - - - - - - to allow for 2 HDDs and 2 CDs plus USB memory pens and a Daemon Virtual Drive
STACKSHIGH=0,0
FCBSHIGH=1,0 - - - - - - FCBSHIGH won't accept 0,0
DEVICEHIGH=C:\WINDOWS\IFSHLP.SYS
device=C:\WINDOWS\COMMAND\display.sys con=(ega,,1)
Country=044,850,C:\WINDOWS\COMMAND\country.sys

(Autoexec.bat carries the corresponding...
mode con codepage prepare=((850) C:\WINDOWS\COMMAND\ega.cpi)
mode con codepage select=850
to match the last two config.sys lines)

I also have added the following command to my MSDOS.SYS file

[Options]
WinVer=4.10.2222
Logo=0
BootMulti=0
BootGUI=0 - - - - - - - - WIN is added to Autoexec.bat
DoubleBuffer=0
AutoScan=0
DrvSpace=0
DblSpace=0
BootDelay=0
DisableLog=1

I am trying to squeeze as much space and speed out of what I have - buying a new PC and XP in not an option for the foreseeable future and 98se does all I need (and a lot faster than XP)

Any Config.sys experts out there for 98se ?

Discussion is locked
You are posting a reply to: Config.sys Commands
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Config.sys Commands
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
For me...

In reply to: Config.sys Commands

It's all up to me. Example. I wrote a database program and needed to crank the FILES= to it's maximum 255. I wish I could have gone higher.

-> What does this mean? It means that there are no correct answers to what should be in your config.sys. There are settings that work for most of us most of the time.

There also is something that you should know and that I've seen poorly done config.sys and even when we moved back to as good as we could either speed or free base memory was only improved by 1 percent. No real payoff here.

Set your goals, take a shot and measure what you are trying to achieve.

You'll get closer and learn more as you do this.

-> In closing I'll share but it's all from memory. There are no more DOS based Windows here for me to play with anymore.

Bob

Collapse -
(NT) (NT) Thanks Bob - I'll have a dabble and see what happens

In reply to: For me...

Collapse -
nothing to do with config.sys

In reply to: Config.sys Commands

In your spare time look up
>conservative swap file usage<

Give it a test drive.

Collapse -
Thanks...

In reply to: nothing to do with config.sys

Thanks for that Bob B

I always use the Unofficial Win98se SP2 and I believe it puts it in automatically in the [386Enh] section of System.ini
ConservativeSwapfileUsage=1 - is it's present setting

I usually let Norton Utilities sort out the best minimum size swap file for me but i noticed that, on the PC I've just built with 512 Meg of RAM, it hasn't put a Minimum Swap size so I guess that once you've hit 512 RAM it isn't worth setting a minimum.

One thing that did speed up things a while ago was to get rid of the Adobe Acrobat IEhelper ( whatever that is ) - I noticed it with Winpatrol and getting rid of it did a significant speed increase. The only Extras I now run at Startup is the 'IE New Window Maximiser'. It's such a pain that Windows can't do this job on its own - apart from the icon in the quickstart tray ( set to Maximised ) - right-click and 'open in new window' doesn't work maximised. I know the trick of 'Dragging the corners to screen size' then switch off this window last helps but it's still not true Max size.

Mike

Collapse -
Something very old for your reading pleasure only

In reply to: Config.sys Commands

"Description of the Windows 95 Startup Process (Q174018)."

The Windows Operating System Predicaments: "Where am I, how did I get there, and what am I capable of doing in MS-DOS Mode/Single-Action Mode (SAM)?"

What this means and how you got there:

a. Just as the system begins to boot, you see the message "Starting Windows ..." and you press the F8 key or hold the Ctrl key to access the command prompt;

b. You double-clicked the name of an MS-DOS application in the GUI;

c. You double-clicked a shortcut for an MS-DOS application;

d. You clicked on the START button, selecting Shut Down, and "Restart computer in MS-DOS mode";

e. You clicked on the START button, selected Programs, and then the MS-DOS PROMPT.PIF;

* * * * * * * * * *

Phase One (a. above):

? After the system is bootstrapped, VxD loaded, and any configuration files processed, the system displays the MS-DOS prompt on the display (or boots into Windows). "What got loaded?" Reference: "IO.sys: the real-mode operating system".

1. IO.SYS (which is the real-mode operating system) loads drivers for HIMEM.SYS, IFSHLP.SYS, SETVER.EXE, and DBLSPACE.BIN or DRVSPACE.BIN by default. It loads dos=high, files=60, lastdrive=z, buffers=30, stacks=9,256, shell= (it's appropriate entry), and fcbs=4.

2. MSDOS.SYS, which contains special information for Windows. The typical default values loaded are:

[Options]
BootGUI=1

[Paths]
WinDir=C:\WINDOWS
WinBootDir=C:\WINDOWS
HostWinBootDrv=C


3. CONFIG.SYS and AUTOEXEC.BAT:

Note: To override a default value loaded by IO.SYS, place an entry in CONFIG.SYS with a value that exceeds the value listed in #1 above. A lesser value will not take effect.

4. Phase One Caveats:

a. By default, the system does not provide for peripherals other than what is included during the system bootstrapping with the BIOS in control and the Master Boot Record (MBR).

Note: To see a summary of system device drivers, system data, programs, and installed devices that have been loaded, type mem /d/p at the command prompt and press enter. If any device such as a CD-ROM, mouse, or other removable is not listed in this summary, access or recognition of the device will not be available until its driver(s) is(are) loaded.

b. Major caveat #1 is loading peripheral drivers in the configuration files when they are usually not necessary for operation in the Windows Graphical User Interface (GUI/Protected-mode).

Note: Depending on the reason for running anything at the MS-DOS prompt it could makes more sense to use a bootable floppy that contain the necessary entries in its configuration files to access a device at the command line in this phase. For instance, use the Emergency Boot Disk (EBD) which has been prepared to gain access to the CD-ROM drive or a specific boot disk with special entries in the configuration files set for any special tasks.

c. Major caveat #2 is having configuration files which get processed during a system boot and are not necessary. The existence of, or empty, configuration files requires that Command.com be loaded into conventional memory - about 8K, and if there are device driver entries in either file, they are loaded into conventional memory too.

Note: Peripheral devices loaded in configuration files may be accessed globally in any virtual machine. A virtual machine (VM) is an environment in memory that, from an application's perspective, looks as if it is a separate computer, complete with all of the resources available on the physical computer that an application needs to run. Each MS-DOS-based application runs in its own VM.

Hint: If there are no configurations files process during boot and no peripherals such as a mouse or CD-ROM is/are available in DOS, consider whether the DOSSTART.BAT file can be run to activate them. If it contains all the necessary information, the CD-ROM, mouse and other device drivers can be activated by running it. Additional information is provided below on this subject. If a DOSSTART.BAT file does not already exist in the Windows folder, you may create the file manually.

Phase Two (b. above): Double-clicking an MS-DOS application in the GUI.

DOSPRMPT.PIF:

? When double-clicking an MS-DOS applications, this PIF (set with the Windows default properties) is used to run the application. After the session ends, the Windows GUI and protect-mode (PM) drivers are regenerated WITHOUT a system re-boot.

Notes:

a. Windows first searches for this PIF in the folder that contain the file being executed (Windows\PIF folder), for a path specified in the environment, and if no PIF is found, the APPS.INF file in the \INF folder is searched for a match.

b. If Windows does not find an entry for the executed application in the APPS.INF file, it uses its own default settings and creates a PIF. If the system was upgraded from Windows 3.x to Win98, a _DEFAULT.PIF file was retained in the Windows folder. In this case, Windows uses information in the _DEFAULT.PIF file to create a PIF for the application.

Caveats:

a. When a program is run from the Windows GUI and the command is not recognized, the most likely cause is that the PIF's Advanced Properties have been set to "Do Not Detect Windows", "Cannot Start a Windows-Based Program from MS-DOS Prompt (Q134489)".

b. When you know beyond a shadow of a doubt that a PIF's setting is correct and there could be no possible reason for a failure, there is perhaps another PIF that is running the program instead of the PIF you suspect is the correct one. Note what a. and b. above is saying.

Phase Three (c. above): Double-clicking a shortcut for an MS-DOS application.

a. Available parameters for an MS-DOS application using a shortcut depends on its configuration in the Properties | Program tab | Advanced section. By default the box "MS-DOS mode" and "Use Current MS-DOS Configuration" is checked.

b. When the "MS-DOS mode" box is checked in a shortcut, the protected-mode (PM) drivers in the Windows GUI are not available. (See 4aNote above for what is available to the application).

c. By default, if a batch file by the name of DOSSTART.BAT is located in the Windows folder, it is run simultaneously with the shortcut. Entries can be placed in this file just as they can in an Autoexec.bat file. Config.sys type entries cannot be placed in this file.

Hint: Device drivers are activated during a system boot when a Config.sys file is processed. If the system didn't process a Config.sys file, there is no way to activate these drivers without a third-party program.

d. After this session ends, the Windows GUI and PM drivers are regenerated WITHOUT a system re-boot.

e. When the "MS-DOS mode" and the "Specify a New MS-DOS Configuration" boxes are checked for a shortcut:

? ALL active Windows programs are shutdown (CLOSED)

? The DOSSTART.BAT file is not run

? The protected-mode (PM) drivers in the Windows GUI are not available (see 4aNote above for what is available globally)

? Only the configurations entered in the two windows "Config.sys for MS-DOS mode" and "Autoexec.bat for MS-DOS mode" are available

? The system re-boots after the DOS application exits.

a. When an application is run in this manner, existing CONFIG.SYS and AUTOEXEC.BAT files are renamed to CONFIG.WOS and AUTOEXEC.WOS, and the CONFIG.SYS and AUTOEXEC.BAT files specified in the PIF are copied to the boot root. Also, the entry "DOS=SINGLE" is added to the CONFIG.SYS file specified by the PIF to cause Windows to start in MS-DOS mode. If you turn your computer off, it fails, or you restart it while it is running in MS-DOS mode, the PIF-specific CONFIG.SYS and AUTOEXEC.BAT files are retained in the boot root and the computer starts up in MS-DOS mode the next time it boots. During the boot, a user is prompted to press ESC to return to Windows for about two seconds. If you miss this prompt to reboot the Windows GUI, the system defaults to MS-DOS Mode.

b. When you quit an MS-DOS-based program properly, the PIF-specific CONFIG.SYS and AUTOEXEC.BAT files are renamed with the ".WOS" extension and the original files are returned to the extension of ".SYS".

c. "PIF specific" CONFIG.xxx and AUTOEXEC.xxx files are created only the first time a shortcut is created using the "Specify a new MS-DOS configuration" for an MS-DOS-based program that will run in MS-DOS mode. All shortcuts created subsequently, using the "Specify a new MS-DOS configuration", will inherit these settings.

Phase Four (d. above): Clicking the START button, selecting Shut Down, and "Restart computer in MS-DOS mode":

a. The unedited "Exit to DOS" PIF and the DOSSTART.BAT are run

b. ALL active Windows programs are shutdown (CLOSED)

c. The protected-mode (PM) drivers in the Windows GUI are not available (see 4aNote above for what is available)

d. You are presented with an MS-DOS prompt

e. Windows can be restarted by typing "Exit" at the prompt and pressing enter.

Caveats:

a. After you type "Exit" to restart Windows, which does not require a reboot, the computer may reboot. This behavior can occur if a real-mode device driver for MS-DOS mode is being loaded from the Dosstart.bat file. The computer is restarted to remove the real-mode device driver from memory when "Exit" is typed.

b. If you edit the "Exit to DOS" PIF and "Specify a new MS-DOS configuration", then the specified Config.sys & Autoexec.bat files are processed & Dosstart.bat is not. The computer is restarted when "Exit" is typed.

c. Notes:

(1) If there is a real necessity for loading a real-mode device driver in the DOSSTART.BAT file, which will necessitate a reboot, it might be more advantageous to load the driver in the configuration files during boot. However, doing so will cause the device driver to be loaded globally (all the time which uses conventional memory).

(2) When you restart Windows in MS-DOS mode, or when MS-DOS mode is set to use the "Use Current Configuration" option, any "SET" statements entered are ignored.

Phase Five (e. above):

a. Clicking the START button, selecting Programs, and the MS-DOS PROMPT.PIF gives a user access to the DOS command line inside the GUI. Return to Windows by typing "Exit" at the command prompt and pressing enter.

? Caveat: DO NOT configure this shortcut by checking "Specify a New MS-DOS Configuration" in the advanced section. When this box is checked, the system will re-boot after the session. Leave this shortcut set to the Windows default, "Starting an MS-DOS Prompt Restarts Computer in MS-DOS Mode (Q159763)."

b. Tips, tricks, and hints:

Tip: When choosing "Restart the computer in MS-DOS mode" in the Shut Down Windows dialog box and then click OK, you may receive an error message "Invalid COMMAND.COM," (or the screen may go black and then Windows restart). This error can occur if the "Exit to DOS" PIF points to a different version of COMMAND.COM than the one loaded in the computer's memory during boot. This will also occur if the path in the Exit to DOS PIF or the Dosprmpt PIF is set to a folder other than Windows.

Hint: There is an environmental settings for COMMAND.COM when Windows loads (this can be seen by dropping to a DOS prompt and typing SET). It has been my practice to enter %COMSPEC% as the "CMD Line" entry on the PIF Program tab, instead of using a path and filename for COMMAND.COM.

Tip: When creating a PIF (and the box is checked to "Specify a New MS-DOS Configuration") enter in the "Config.sys for MS-DOS mode" the windows driver for SMARTDrive to cache the CDs and Floppies.

Tip: Additional environment variables can be entered for a system when the "Specify a New MS-DOS Configuration" has been selected in the "Advanced" section of a shortcut (see variables in paragraph 1 at the top).

Caveat: When using the selection, "Specify a New MS-DOS Configuration" in a shortcut, the system will warn you that all protected-mode programs must be shutdown before the shortcut is run - you may not want to do this. It depends on the purpose of your shortcut.

Tip: Try a setting that runs "full-screen" not "windowed" - the Windows default which can cause problems with some games and demanding programs. If this doesn't help, try the "Exclusive" setting in the Properties sheet.

Trick: Some 16-bit Windows applications run in the Win95/8 GUI may request version information and will fail if they receive an incorrect version number. To solve this problem, locate in \Windows\System the file MKCOMPAT.EXE. This file acts as a liaison between incompatible programs and Windows. Launch MKCOMPAT and check the menu to select the probable solution to incompatibilities. Use the list and select "Lie about Windows version" may be one to try.

Hint: Because of the way Windows allocates memory, memory below 1Mb is a limited resource even when you are running Windows-based applications.

Hint: When possible, run the MEMMAKER utility to load real-mode drivers in the upper memory blocks (UMB), when loading real-mode drivers in the configuration files. This utility may be available in the OTHER\OLDDOS directory depending on the Windows version. If you run it in an MS-DOS mode from Windows, it will return to this mode when it reboots. If it is being run from the DOS prompt (F8/?-key), it returns to that mode.

Note: After running MEMMAKER, check the configuration file entries for Himem and Emm386 and be sure the path to them are correct.

? WINDOWS 95 v/s 98: Virtually, there is little if any difference between the two, "Multiple Copies of Command.com in Memory in MS-DOS Mode (Q149548)".

? This article describes two additional x.PIF files furnished FYI and describes alternatives of running games in Win98, "Windows 98 Sample Program Information (.pif) Files (Q188157)."

Popular Forums

icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

DEALS, DEALS, DEALS!

Best Black Friday Deals

CNET editors are busy culling the list and highlighting what we think are the best deals out there this holiday season.