Friday, January 27, 2012

CONFIG & BAT FILE


CONFIG.SYS and AUTOEXEC.BAT files

CONFIGSYS file and AUTOEXEC.BAT file are two files that are checked by computer system during the startup operation.The instructions in these files help to configure the system and to set the working environment to run computer smoothly.

CONFIG.SYS
            The CONFIG.SYS is a special text file that controls certain aspects of operating system behavior in MS-DOS .It contains the information about the system configuration .Commands the CONFIG.SYS file enable or disable system features,set limits on resources like the maximum number of open files and enhance the operating system function by loading device drivers that control hardware specific to and individual computer system .this file is used by MS-DOS during the startup  process and the configuration specified in  this file sets for the system .And it is stored the root directory of the startup disk.We create and edit this file as ordinary DOS file but it contains special instructions for system configuration and extension .SYS.


Example:-

C:\>COPY CON CONFIG.SYS
FILES = 20
BUFFERS = 10
DEVICE = C:\DOS\MOUSE.SYS

            Here the FILES instruction sets the maximum limit of open files to 20.The BUFFER. Instruction sets the buffer size 10 and the DEVICE instruction sets the location  of the device drive file.

AUTOEXEC.BAT:-
            AUTOEXEC.BAT is a  special –purpose batch file that is automatically carried out by the MS-DOS operating whenever the computer is started or restarted .AUTOEXEC.BAT is created by the user,in later version of MS-DOS ,by the operating system when the ststem is installed .It is located in the root directory of the sartup disk.The file contains basic startup commands that help to configure the system to installed devices and to the preferences of the use to prepare computer to run smoothly .After execution of this file the DOS prompt appears to accept the command from the user.This file is created in DOS an or dinary text file Following example show the general AUTOEXEC.BAT file

Example:-

C:\>COPY CON AUTOEXEC.BAT
@ECHO OFF
PATH = C:\WINDOWS.DOS;
DATE
TIME
            The ECHO command indicates whether to display the DOS commands on screen or not during the execution of AUTOEXEC.BAT file.ON specifies to display on OFF specifies not to display the command @Single proceding the ECHO command specifies not to display the ECHO command itself on the screen.PATH sets the path of the execute file.

No comments:

Post a Comment