Flux rss

Operating Systems - Customising DOS

The DOS start-up procedure is defined in the autoexec.bat and config.sys files located in the root of your "C:\" drive. We highly recommend making back up copies of these files before modifying them.
To deactivate a line of command in either file just place the "rem" (remark) command at the beginning of the line, there is no need to delete the entire line.

Config.sys

The config.sys file is a text file which loads device drivers and defines parameters for MS-DOS.

  • device is used to load device drivers
  • devicehigh loads the driver into the high memory area
  • dos defines the area of memory where DOS will be loaded
  • drivparm defines disk drive specifications
  • fcbs specifies the number of file control blocks
  • files specifies the number of files that can be opened at the same time
  • install runs a resident program (TSR - terminate and stay resident)
  • lastdrive defines the number of valid disk drives
  • shell indicates that another command prompt other than COMMAND.COM should be used.
  • stacks specifies the amount of memory reserved for hardware interrupts

Autoexec.bat

The autoexec.bat is a batch file (as denoted by the file extension), a text file which contains a group of commands run one after the other, each command is written on a separate line.
Some of the following are examples of commands that can be added to the autoexec.bat (any program that runs in DOS can be added to this file):

  • the path command tells MS-DOS the file location where files can be accessed when in another folder.
  • the prompt command sets the type of MS-DOS prompt
  • the doskey command allows you to use the directional keypad to go back through previous commands that have been run.

Creating a start menu

In DOS, Windows 95 or Windows 98 systems it is possible to create a start menu where you can select which devices are to be loaded in DOS and even (as is the case with Windows 95/98) tell the system to start-up in either Windows or DOS. The config.sys and autoexec.bat files (and in Windows the msdos.sys file) must be modified to allow the selection of DOS and Windows at start-up.

Modifying the config.sys file

To have the Windows and DOS options on start-up, the config.sys file must be modified as follows:

[COMMON]


FILES=40
Country=044,850,C:\WINDOWS\COMMAND\country.sys
 
[MENU]
REM *********Start Menu*************************************
MENUITEM=1, Dos
MENUITEM=2, Windows 98
 
REM ***********OPTIONS*************************************************
MENUCOLOR=15,0
MENUDEFAULT=2 ,4

[1]
contents of the config.sys file you wish to use in configuration 1

[2]
contents of the config.sys file you wish to use in configuration 2

explanation of changes made to the config.sys file

[COMMON] contains file information config.sys which is common to both configuration 1 and 2.

[MENU] contains the titles of the menu items (here DOS and Windows 98) as well as the menu settings:

  • background colour (here 15) and text colour (here 0)
  • the item (here the 2nd item) is loaded if no item is selected after a set time (here 4 seconds)

Then both configurations after the markers [1] and [2]

modifying the autoexec.bat file

The autoexec.bat file must be modified as follows:

goto %config%


 
:1
autoexec.bat file contents for configuration 1
goto end
 
:2
autoexec.bat file contents for configuration 2
win
goto end
 
:end
(items common to both configurations)
explanation of changes made to the autoexec.bat file

The changes made to the autoexec.bat file are not complicated, there are two sections in the file which the system will go to as you previously selected in the config.sys (as the system will execute the config.sys first).

modifying the msdos.sys file

If you wish to choose between DOS and Windows you must edit the msdos.sys file. Make sure you remove the read-only attribute, then add or modify the following lines:


[Options]
BootMulti=1
BootGUI=0

then add the line "win" to the end of the configuration corresponding to Windows in the autoexec.bat, which will then load Windows if selected.

Last update on Thursday October 16, 2008 02:43:13 PM.

This document entitled « Operating Systems - Customising DOS » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.

Results for

How to determine your operating systems ? how to determine your operating systems ? There are many Operating System available and it is quite difficult to depict due to its similarity and quite small differences. The easiest way to know what windows operate on your computer is to... en.kioskea.net/faq/sujet-484-how-to-determine-your-operating-systems
GNU Operating System GNU Operating System GNU is an operating system that offers a set of free open source programs licensed under UNIX. It has many applications and tools that are also provided with the operating system. This allows users online to share all... en.kioskea.net/faq/sujet-478-gnu-operating-system
Operating system missing Hello, my laptop shows this operating system missing what should i do i tried putting the xp pro cd but nothing is happening i even tried win 2000 pro cd the setup files get installed and then reboots and then again i find the same message "operating... en.kioskea.net/forum/affich-11889-operating-system-missing

Results for

Information on your systemInformation on your system System information and components Device Manager System information and components To access systems information under the Windows XP operating systems, you just to have click on Menu “Start” > “All... en.kioskea.net/faq/sujet-742-information-on-your-system
Download a theme for XPDownload a theme for XP Download Links: If you wish to personalize your Windows XP, here is an effective way how you can change the theme of this Operating System. There are lots of websites that propose you to download a new theme,... en.kioskea.net/faq/sujet-517-download-a-theme-for-xp
Disabling the DNS cache of Mozilla FirefoxDisabling the DNS cache of Mozilla Firefox The Firefox web browser contains its own DNS cache independent of your operating system. For most users, it is quite convenient, it allows a faster web browsing as it doesn't have to request for... en.kioskea.net/faq/sujet-555-disabling-the-dns-cache-of-mozilla-firefox

Results for

Download Adobe Flash PlayerAdobe Flash Player is the high performance, lightweight, highly expressive client runtime that delivers powerful and consistent user experiences across major operating systems and browsers. en.kioskea.net/telecharger/telecharger-91-adobe-flash-player
Download VDMSoundVDMSound is a free software " open source " working in emulator of cards sounds for Microsoft Windows. He allows videos games and in applications conceived under MS-DOS to work on the new operating systems. VDMSound emulates cards Adlib and Sound... en.kioskea.net/telecharger/telecharger-440-vdmsound
Download ASIO4ALLAsio4all is an audio drivers who takes care of all audio apparatuses using WDM technology. So, to be able to use it, it is necessary to be in possession of an operating system which takes care of this technology (on 2000 and XP / not systematics under... en.kioskea.net/telecharger/telecharger-830-asio4all

Results for

Software piracy increases in Asia-Pacific: industry groupA man buys a pirated copy of Microsoft's operation system Windows Vista from a stall at a shopping mall in Jakarta in 2007. Software piracy increased last year in the Asia-Pacific region, boosted by China's growing use of personal... en.kioskea.net/actualites/software-piracy-increases-in-asia-pacific-industry-group-10372-actualite.php3
French police deal blow to MicrosoftFrench police at work in Paris in 2006. The French paramilitary police force has said it is ditching Microsoft for the free Linux operating system, becoming one of the biggest administrations in the world to make the break. The French paramilitary... en.kioskea.net/actualites/french-police-deal-blow-to-microsoft-10037-actualite.php3

Results for

Operating systems - Environment variables An environment variable is a dynamic value loaded into the memory that can be used by several processes operating simultaneously. On most operating systems, the location of some libraries or of the main system executables may be different depending... en.kioskea.net/systemes/variables-environnement.php3
UNIX system - Introduction The Unix system is a multi-user, multi tasking operating system which means that it allows a single or multiprocessor computer to simultaneously execute several programs by one or several users. It has one or several command interpreters (shell) as... en.kioskea.net/unix/unixintro.php3
Microsoft Windows - Introduction Windows is the operating system sold by the Seattle-based company Microsoft. Microsoft, originally christened "Traf-O-Data" in 1972, was renamed "Micro-soft" in November 1975, then "Microsoft" on November 26, 1976. Microsoft entered the marketplace... en.kioskea.net/win/winintro.php3