Sistemi operativi - DOS - Personalizzazione Sistemas de exploração  - DOS - Personnalisation Betriebssysteme - DOS - Individualisierung Systèmes d'exploitation - DOS - Personnalisation Sistemas operativos - Personalización de 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.

Best answers for « Operating Systems Customising DOS » in :
Operating Systems - MS-DOS - Tips Show Setting the CD-ROM drive The CD-ROM drive is configured in the config.sys and autoexec.bat system files. The CD-ROM drive device driver must be configured in the config.sys file (even if the device is automatically detected in Windows). To do...
Operating Systems - Installing MS-DOS Show Installing MS-DOS When installing MS-DOS, make sure that in the BIOS the the boot disk is set to A: first, then the hard drive (boot sequence: A:, C:) Then insert disk 1 in the A: drive, power up the computer, then follow the on-screen...
GNU Operating System ShowGNU 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...
How to determine the version of your operating systems ? ShowHow to determine the version of 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...
Download Google OS (0.4.207 beta) ShowDownload Google OS (0.4.207 beta) Intro Installation Intro Google Chrome OS a new operating system built around Google Chrome. It is still a beta version based on Linux and note that it is free and. The download is at this address...
Download VDMSound ShowVDMSound 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...
Operating system ShowDescription of the operating system For a computer to be able to operate a computer programme (sometimes known as application or software), the machine must be able to perform a certain number of preparatory operations to ensure exchange between...
Operating Systems - MS-DOS - Commands ShowCommand Description dir lists the contents of a folder cd changes folder cd .. parent folder md or mkdir creates a new folder deltree deletes a folder and all sub-folders copy, xcopy copies...
Introduction to DOS ShowThe development of MS-DOS MS-DOS is the most well known operating system, the most commercialised version is that of Microsoft, christened "MS-DOS" (there are other versions such as DR-DOS). MS-DOS was created in 1981 when it was used on an IBM...