×

Autoexec.bat and config.sys Information

Basically, the Config.sys and Autoexec.bat files are made for MS-DOS and Windows 3. x to load the device and operating system to work effectively. The most recent versions of MS-DOS and Windows 3.x cannot be loaded without these files.  But newer versions of windows are no longer needed.

How to edit the files

Config.sys and Autoexec.bat are both files that may be modified using the MS-DOS command file editor. If you want to edit this file, type edit c:autoexec.bat, or to edit the Config.sys file, type edit c:config.sys. The mouse won't function if the mouse drivers are not correctly loaded.

If you have window 95, window 98, or other window ME, and then it is recommended to use the sysedit command. To run sysedit, you have to click on Start, Run and type sysedit.

Note: Window XP is not currently used in the autoexec.bat or Config.sys file.

Remarking Information

We can temporarily or permanently prevent a line from loading each time the computer boots by identifying certain lines in the autoexec.bat or Config.sys files. Before each line you want to skip, put REM to indicate it as a remark.

Note: If you find some error with an autoexec.bat lie, remark the lie instead of deleting the line in case if it needs to be added again.

Getting additional memory

To load the program into the memory more efficiently in the computer, you have to use the code that is following, which will help to have a memory for MS-DOS programs and games as well.

The first three lines of your Config.sys file should be as shown below before you begin.

DEVICE = C:  Windows  HIMEM.SYS
DOS = HIGH, UMB
DEVICE = C:  Window  EMM386.EXE NOEMS

Because DOS is loaded into higher memory before it is loaded into upper memory, in the memory manager, setting DOS = HIGH, UMB on the second line allows for memory savings. The first and third lines, which serve as the memory managers, cannot be put into high memory.

Loading of all devices in the Config.sys and autoexec.bat into high memory.

Autoexec.bat layout

Autoexec.bat and Config.sys information

There is following example of autoexec.bat:

@echo off
SET SOUND=C:  PROGRA~1  CREATIVE  CTSND
SET BLASTER=A220 I5 D1 H5 P330 E620 T6
SET PATH=C:  Windows; C: 
LH C:Windows  COMMAND  MSCDEX.EXE / D: 123

There is following some line that are common found in the autoexec.bat for further information about each of the given line:

@echo off

It is used to say MS-DOS to read the lines but not to echo their result back to the screen.

SET SOUND=C:PROGRA~1CREATIVECTSND

The set sound command instructs the computer to transmit all sound events to the directory holding the sound drivers.

SET BLASTER=A220 I5 D1 H5 P330 E620 T6

This line instructs the computer to configure the Sound Blaster settings, which is useful for computer games and other programmers that require sound. You have all sound card options if you have this line in your autoexec.bat. I5 stands for IRQ 5, and D1 for DMA 1. I5 is IRQ 5, D1 is DMA 1, and A220 is a port address of 220. The majority of sound cards have the following default settings.

SET PATH=C: Windows; C:

The computer is programmed to look in the root or the C: Windows directory if a command entered at the prompt is not found.

LH C:WindowsCOMMANDMSCDEX.EXE /D: 123

The CD-ROM is loaded into the high memory region using this line. The MSCDEX is detected in the C:WindowsCOMMAND directory if you have Windows 95 or later. This file is located in the C:DOS or C:Windows directory in Windows 3. x or DOS. The /D: 123 specifies the name of the upper-memory driver; it can be anything, but it's generally /D: MSCD0001. Remember that this is the driver's moniker, not his or her actual name. If you modify this line, you must also modify the Config.sys file on your CD-ROM line. Your CD-ROM drive will not load if the two are not identical.

LH C:MOUSEMOUSE.EXE

The mouse driver is loaded into high memory. Not all mouse, however, utilize the same drivers. The mouse might utilize mouse.exe, but it could also be "mouse.com" or "mouse.sys," which is also loaded in the Config.sys file.

C:DOSSMARTDRV.EXE /X

Smartdrive disc cache utility is loaded into memory.

DOSKEY

Doskey must be loaded into memory before it can be used from the command line.

CLS

To clean the screen, use the MS-DOS command cls.

WIN

This line launches Windows automatically when the machine boots up for people using Windows 3. x. The computer would only load to the MS-DOS prompt if you didn't use this command.

Note: - A DOS text file should only be created or edited with a DOS editor like Modify, EDLIN, or TED. Use text (ASCII) format rather than any other specific file type that the word processor may support if you're using a word processor to save the file.
A DOS text file should only be created or edited with a DOS editor like Modify, EDLIN, or TED. Use text (ASCII) format rather than any other specific file type that the word processor may support if you're using a word processor to save the file.

Usage: -AUTOEXEC.BAT When DOS boots up, it reads BAT, including MS-DOS version 7.x, which is used in Windows 95 and Windows 98. Windows ME only parses environment variables to reduce reliance on the past, however this may be avoided.

Disk Control Program (DCP), an MS-DOS version developed by the old East-German VEB Robotron, also used the filename.

In Korean versions of MS-DOS/PC DOS 4.01 and higher, COMMAND.COM will look for a file named KAUTOEXE if the current country code is set to 82 (for Korea), no /P: filename is supplied, and no default AUTOEXEC.BAT is identified (except for PC DOS 7 and 2000). Rather, make sure the DBCS frontend drivers are loaded via BAT, even if the CONFIG.SYS and AUTOEXEC.BAT files aren't set up correctly.

Config.sys layout

Autoexec.bat and Config.sys information

An example of how the config.sys may appear is shown below: -

DEVICE=C:WindowsHIMEM.SYS
DOS=HIGH, UMB
DEVICE=C:WindowsEMM386.EXE NOEMS
FILES=30
STACKS=0, 0
BUFFERS=20
DEVICEHIGH=C:WindowsCOMMANDANSI.SYS
DEVICEHIGH=C:MTMCDAI.SYS /D:123

The following are some of the more commonly encountered lines in the Config.sys file, along with more information about each line.

DEVICE=C:Windowshimem.sys

The himem.sys line is crucial; it allows you to load drivers into the high memory region. Windows 3. x will not load if this line is missing.

DOS=HIGH, UMB

A high memory block in an upper memory block has to be loaded using DOS.

Note:  After the himem.sys file, add this line.

DEVICE=C:WindowsEMM386.EXE NOEMS

The extended memory manager is loaded via the EMM386 line. Some older MS-DOS games, on the other hand, have issues with expanded memory and won't operate without the NOEMS declaration.

FILES=30

Windows may load up to 30 files at once using the files line. Going higher, on the other hand, may degrade the computer's performance; 30 has been shown to be the optimal setting. Also, make sure the line is one continuous line with no gaps between and after the =. (equal sign).

STACKS=0, 0

When an asynchronous hardware event occurred, the stack line was initially used in MS-DOS 3.2 to swap the stack. The line STACKS=0,0 was later added to the Config.sys in MS-DOS 3.3. This line was modified to STACKS=9,128 in specific instances.

The STACKS command has an 8-64, 32-512 range of values. If you input a greater value, you'll get a "FATAL: Internal stack failure, system suspended" error.

BUFFERS=20

The Buffers line loads buffers into memory, which allows Windows to load memory.

DEVICEHIGH=C:WindowsCOMMANDANSI.SYS

The ANSI.sys line is a DOS driver that allows you to customize the DOS prompt with multiple colors, sizes, and special characters.

DEVICEHIGH=C: MTMCDAI.SYS /D:123

The CD-ROM drivers are used to control the CD-ROM drive. The /D:123 denote the driver's name, which is 123 in this case, but maybe anything, generally MSCD0001. It's important to remember that the /D:123 in Config.sys and autoexec.bat must match. If they're not the same, the CD-ROM won't operate in MS-DOS.

LASTDRIVE=

Allows you to select the computer's most recent hard drive. This line should only be used if you're running Windows 3.11 or older because newer versions of Windows disregard it.

FCBS=

This line specifies the amount of file control blocks that can be used for file sharing.  It should only be utilized when applications demand it, which is not the case currently. Between 1 and 255 can be used by FCBS.

Usage: During startup, MS-DOS and 16-bit versions of Microsoft Windows employ a text file called Config.sys to configure the hardware of the machine.

A computer's memory, keyboard, mouse, printer, and other peripherals are configured using the Config.sys file. Any text editor can edit the Config.sys file, which is an ASCII file.


Related Topics

How to Fix a Windows CD-ROM, DVD, or Disc Drive Issue?

If your CD-ROM, DVD, or disc drive is not working properly in Windows, you can try a few troubleshooting steps to fix the issue. These steps include checking the connections,...

6 minutes read.

What is Cyber Warfare?

Cyber warfare is the use of technology, which is used to attack the enemy state. It is a hacking technique mainly used by military forces to target foreign countries' key...

7 minutes read.

What is Device Driver?

Device Driver A device driver is a specific type of programming application that permits one equipment device (like a PC) to interface with another equipment device (like a printer). A device...

6 minutes read.

What is Scratch?

Scratch is a visual programming language that lets students build interactive tales, games, and animations. Students develop their creative thinking, logical reasoning, and teamwork skills as they create Scratch projects....

3 minutes read.

What is Chat Slang?

Chat slang, also known as internet slang or cyber slang, is a form of shorthand language used in instant messaging, text messaging, and other online communications, such as social media...

4 minutes read.

What is a router?

A router allows the user to connect multiple packet-switched networks or subnetworks. It ensures the delivery of the data packet to the IP addresses they are assigned. We can use...

10 minutes read.

Update an Antivirus

What is an Antivirus Program? An antivirus program is a specifically designed software that allows the user to detect any harmful or infected application or file. It not only detects any...

7 minutes read.

How do I Update my Antivirus Program

It's crucial to protect your computer from viruses, especially if it connects to the Internet. If you maintain your antivirus software's virus definitions up to date, it can help keep...

4 minutes read.

How to install a computer processor

Installing a CPU is much simpler than many other steps in the PC-building process. There is no need to worry that you will make a mistake because we will walk...

6 minutes read.

How to choose which items show in the notification area

Icons in the notification area, also known as the system tray, contain information for users about several features of their operating system. Examples include the date and time, the state...

3 minutes read.

What is a boot device?

A boot device would be any machinery containing the files required to launch a system. A hard disk, an optical disk drive, a CD - ROMS drive, a Storage device,...

3 minutes read.

What is Keyboard?

In modern times, computer is one of the most important digital technologies for any human being. People will also efficiently correlate these new technologies with the increasing daily-by-day technology. Today’s environment, all...

7 minutes read.

What are the disadvantages of the Internet?

Disadvantages of the Internet Every invention has two aspects, good and bad. However, for all its advantages and positive perspectives, every technology has its obscure and nasty side.  Similarly, the Internet...

5 minutes read.

What does Alt+F do?

The computer is one of the most basic needs of every user. Without a computer we cannot do anything, almost in every field. In computer, there are many file menu options...

4 minutes read.

How can the Base be Shown?

In mathematics, a set of digits used to represent numbers is a base. As the base, different number systems employ various digit combinations. Examples include the binary number system, which...

3 minutes read.

Computer: Registers Memory

Registers in Computer The Registers are the type of computer memory, which is used to accept, store quickly, and transfer the data and instructions that are immediately used by the CPU (Control Processing...

5 minutes read.

Computer Cleaning Information and Steps

Clean computing refers to the upkeep of a clean computer, including its hardware and software. According to one estimate, a computer's average age is five and a half years. During that...

9 minutes read.

What is Palmtop Computer?

Introduction A palmtop computer is a palm-sized electronic device that is compatible with IBM systems. The clamshell-like or laptop-like form factor of these devices allows them to be used as a...

9 minutes read.

What is AIMBOT?

In shooter games, an AIMBOT is any cheating software or game hack that enables a player to aim automatically and, in some circumstances, auto-shoot (trigger bot). In first-person shooter games,...

4 minutes read.

Version Control System

There are many problems that are faced by a multinational organization. These problems are the backup of data, storing several versions of files and collaboration of employees. All these problems...

6 minutes read.