Autoexec.bat and Config.sys information
关键字: Autoexec.bat Config.sysAutoexec.bat and Config.sys information
|
|
Autoexec.bat layout
Below is an example of what an autoexec may look like:
@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
LH C:\MOUSE\MOUSE.EXE
DOSKEY
CLS
|
Command |
Explanation |
| @echo off | Tells DOS to just read the lines but don't echo them back to the screen. |
| SET SOUND=C:\PROGRA~1\CREATIVE\CTSND | This example is for the particular sound card that we have in one of the machines that we have. The set sound is telling the computer to send all sound events that the computer may run to that directory. |
| SET BLASTER=A220 I5 D1 H5 P330 E620 T6 | Tells the computer to set the sound blaster settings. This is a good line for game players; if you have this line in your autoexec.bat you will know all settings for your sound card. A220 = port address "220", I5 = IRQ 5, D1 = DMA 1 usually being the settings you will need for any game out on the market. |
| SET PATH=C:\Windows;C:\ | Sets the computer to look in the C:\windows directory or the root if a command used at the prompt is not found. |
| LH C:\Windows\COMMAND\MSCDEX.EXE /D:123 | Line used for the CD-ROM. If you have Windows 95+, the MSCDEX will always be in the C:\Windows\COMMAND. In Windows 3.x or DOS, this will usually be either in C:\DOS or C:\Windows directory. The /D:123 is the name of the driver name that loads in upper memory; this can be anything, usually /D:MSCD0001. However, this is not an actual driver, this is just the name for the driver. Ensure if you change this line that you change it in the config.sys on your CD-ROM line. If the two are not the same, your CD-ROM drive will not load. |
| LH C:\MOUSE\MOUSE.EXE | Loads the mouse driver into memory. However, not all mice use the same drivers. Although the mouse may use mouse.exe it could also be "mouse.com" or "mouse.sys", which is loaded in the config.sys. |
| C:\DOS\SMARTDRV.EXE /X | Loads the smartdrive disk cache utility into memory. See our smartdrv command page for additional information about this utility. |
| DOSKEY | Simple dos command to load DOSKEY into memory so when in DOS you can use it without having to load it. |
| CLS | MS-DOS command to clear screen. |
| WIN | Used for users using Windows 3.x, this line will load Windows automatically when booting the computer. |
Config.sys layout
Below is an example of what the config.sys may look like:
DEVICE=C:\Windows\HIMEM.SYS
DOS=HIGH,UMB
DEVICE=C:\Windows\EMM386.EXE NOEMS
FILES=30
STACKS=0,0
BUFFERS=20
DEVICEHIGH=C:\Windows\COMMAND\ANSI.SYS
DEVICEHIGH=C:\MTMCDAI.SYS /D:123
|
Command |
Explanation |
| DEVICE=C:\Windows\HIMEM.SYS | The Himem.sys line is a very important line; this line will allow you to load drivers into high memory. If this line is not present, Windows 3.x will not load. |
| DOS=HIGH,UMB | This line will load DOS into high memory in an upper memory block. Note the location usually best placed after the HIMEM.SYS. |
| DEVICE=C:\Windows\EMM386.EXE NOEMS | The EMM386 line loads the extended memory manager, however note that some MS-DOS games have problems with extended memory and will not run without the NOEMS statement. |
| FILES=30 | The files line allow Windows to load 30 files at the same time. Usually, however, going higher may decrease the computer's performance; 30 is found to work the best. Also ensure that this line is all as one line and that there is not a space between and after the =. |
| STACKS=0,0 | The stacks line was first used in MS-DOS 3.2 and was used to swap the stack whenever an asynchronous hardware interrupt occurred. Later in MS-DOS 3.3 the line STACKS=0,0 was added into the config.sys. In special circumstances, this line was changed to STACKS=9,128.
The STACKS statement has a range of 8-64, 32-512. If a higher value is entered you will receive a FATAL : Internal Stack Failure, System Halted error message. |
| BUFFERS=20 | Buffers line is to load buffers into memory allowing Windows to load memory. |
| DEVICEHIGH=C:\Windows\COMMAND\ANSI.SYS | The ansi.sys line is a driver for DOS to allow you to have different colors / sizes and special characters at the DOS prompt. |
| DEVICEHIGH=C:\MTMCDAI.SYS /D:123 | This line is the name of the CD-ROM driver on the particular system we are working on. The /D:123 represents the name of the driver, which in this case is named 123, however, can be named anything, usually MSCD0001. Note, however, that /D:123 must be exactly the same in config.sys and autoexec.bat; if they are different, the CD-ROM will not work in DOS. |
| LASTDRIVE= | Allows you to specify the last drive installed on the computer. It is not recommended this line be used unless you are using Windows 3.11 or below. This line can cause issues with Windows 95 & 98 and will generally be remarked by Windows automatically. |
| FCBS= | Line used to specify the number of file-control blocks for file sharing. This line should only be used when programs require it, and today, is generally not used or required. FCBS can utilize between 1 and 255. |
|
||||||||||||||||
|
http://www.computerhope.com/ac.htm
发表评论
- 浏览: 42984 次
- 性别:

- 来自: 上海

- 详细资料
搜索本博客
最近加入圈子
链接
- Hibernate Tag 参考手册(中文翻译版1.0)
- 闲聊日语张宏
- 《NeoSpeech语音合成英、中、韩、日朗读引擎》
- 《新版中日交流标准日本语广播讲座初级》同步更新,2006年6月5日,更新全部ISO文件,最后更新[MP3!]
- 《番茄花园 Windows All In One DVD 特别版》[ISO]
- 中 国 DOS 联 盟
- 新DOS时代
- 《虚拟工作站 6.0.1 Build 55017》(VMware Workstation 6.0.1 Build 55017)VMware Workstation 6.0.1 Build 55017
- 《经典2D即时战略游戏集》(Classic 2D-RTS Games Collection)完美硬盘版
- 标题: 关于DOS游戏在XP系统下运行的简单总结!, 新版VDMSound和DOSBox已经出炉啦!
- DOSBox / VDMSound常見FAQ
- D - F e n d 簡 單 教 學
- Get It Done with MySQL 5
- 《沪江日语原创作品资料集(新增交响情人梦)》(jp.hjenglish.com)合辑
- SQL语句教程 - 由范例学习SQL语句
- 飞奔·慢行
- 地铁换乘/时间/价钱
最新评论
-
Hibernate3.x调用存储过程 ...
您好!hibernate提供的在*.hbm.xml中配置调用存储过程,关于< ...
-- by cheatsky -
KMP字符串模式匹配详解
我虽然曾经学过,看来一下感觉有些时候还是比较难理解!
-- by zhoujj303030 -
一个老IT人的自白:看十年 ...
我不认同三星有多牛,说白了,我认为高丽棒子做的东西真的一般般
-- by xbwolf -
JavaTiger(Java5.0) 新特 ...
感谢分享,解决了我的困惑
-- by onwulc -
磨刀不误砍柴功—难忘的Ja ...
...
-- by wcj10051891






评论排行榜