FCBS=Ī line used to specify the number of file control blocks for file sharing.
How to make an autoexec windows#
It is not recommended this line be used unless you are using Windows 3.11 or earlier since later version of Windows ignore this line. LASTDRIVE=Īllows you to specify the last drive installed on the computer. If they are different, the CD-ROM will not work in MS-DOS.
However, keep in mind that the /D:123 must be the same in config.sys and autoexec.bat.
The /D:123 represents the name of the driver, which is named 123, however, can be named anything, usually MSCD0001.
How to make an autoexec driver#
The ansi.sys line is a driver for DOS to allow you to have different colors and sizes and special characters at the DOS prompt. If a higher value is entered, you will receive a "FATAL: Internal stack failure, system halted error." BUFFERS=20īuffers line is to load buffers into memory allowing Windows to load memory. The STACKS statement has a range of 8-64, 32-512. In special circumstances, this line was changed to STACKS=9,128. Later in MS-DOS 3.3 the line STACKS=0,0 was added into the config.sys. The stacks line was first used in MS-DOS 3.2 and was used to swap the stack whenever an asynchronous hardware interrupt occurred. Also, make sure the line is one line and that there's not a space between and after the = ( equal sign). However, going higher may decrease the computer's performance 30 is found to work the best. The files line allow Windows to load 30 files at the same time. However, some older MS-DOS games have problems with extended memory and will not run without the NOEMS statement. The EMM386 line loads the extended memory manager. This line should be placed after the himem.sys. Load DOS into high memory in an upper memory block. If this line is not present, Windows 3.x will not load.
How to make an autoexec drivers#
The himem.sys line is an important line this line allows you to load drivers into high memory area. The following is some of the more common lines found in the config.sys file and further information about each of the lines. Config.sys layoutīelow is an example of how the config.sys may look. Without this command the computer would only load to the MS-DOS prompt. Used for users using Windows 3.x, this line loads automatically Windows when booting the computer. Run the cls MS-DOS command to clear screen. Load doskey into memory so it can be accessed from the command line. See the smartdrv command page for additional information about this utility. Loads the smartdrive disk cache utility into memory. Although the mouse may use mouse.exe, it could also be "" or "mouse.sys," loaded in the config.sys. However, not all mice use the same drivers. If the two are not the same, your CD-ROM drive will not load. If you change this line, it needs to also be changed in the config.sys on your CD-ROM line. Keep in mind that this is not the driver, it is the name of the driver. The /D:123 is the name of the driver name that loads in upper memory this can be anything, usually /D:MSCD0001. In Windows 3.x or DOS, this file is in either in C:\DOS or C:\Windows directory. If you have Windows 95+, the MSCDEX is in the C:\Windows\COMMAND directory. LH C:\Windows\COMMAND\MSCDEX.EXE /D:123Ī line used to load the CD-ROM into the high memory area. Sets the computer path to look in the C:\Windows directory or the root if a command used at the prompt is not found. These settings are the typical settings for most sound cards. A220 is a port address of 220, I5 is IRQ 5, and D1 is DMA 1. If you have this line in your autoexec.bat, you have all settings for your sound card. Tells the computer to set the Sound Blaster settings, which is a good line for computer games or other programs needing sound. The set sound is telling the computer to send all sound events that the computer may run to that directory containing the sound drivers. Tells MS-DOS to read the lines but not echo them or their results back to the screen. The following is some of the more common lines found in the autoexec.bat and further information about each of the lines. Autoexec.bat layoutīelow is an example of how the autoexec.bat may look. Load all your devices in the config.sys and autoexec.bat into high memory. Additionally, the first and third lines cannot be loaded into high memory because these lines are the memory managers. DEVICE=C:\Windows\HIMEM.SYSīy placing the DOS=HIGH,UMB on the second line, this can save memory because it's loading DOS into upper memory before loading the memory manager. Make sure you have the three lines below at the beginning of your config.sys file. The following commands help your computer load programs into memory more efficiently, allowing you to have more memory for MS-DOS programs and games. If you get errors with an autoexec.bat line, remark the line instead of removing the line, in case it needs to be added again.