Autoexec.bat and Config.sys information

Autoexec.bat and Config.sys information

Quick links

About the autoexec / config
How to edit the files
Remarking information
Getting additional memory
Autoexec.bat layout
Config.sys layout
Information about batch files
Technical support

About the autoexec and config

The autoexec.bat and the config.sys were files created for MS-DOS and Windows 3.x as an easy solution of loading the files required for various devices as well as the operating system to properly run. These files are required for later revisions of MS-DOS and Windows 3.x to load. Because Microsoft is trying to steer away from MS-DOS, these files are not required for Windows 95, Windows 98, Windows NT, Windows ME, Windows 2000, Windows XP, or later operating systems. However, in some cases it may still be necessary for users to edit or configure these files.

How to edit the files

The auotexec.bat and the config.sys are most commonly edited by the MS-DOS command file Edit. To edit these files, type edit c:\autoexec.bat to edit the autoexec.bat file, or edit c:\config.sys to edit the config.sys file. If the mouse drivers are not loaded properly you will not have the capability of navigating the mouse.

If you have Windows 95, Windows 98, or later versions of Windows it is recommended that you use the sysedit command; to run this program, click Start / Run and type sysedit.

Remarking information

Remarking lines within the autoexec.bat or the config.sys allows you to temporarily or permanently prevent a line from loading each time you boot the computer. This is done by placing "REM " in front of the line you wish to skip.

If you are encountering issues with a line in the autoexec.bat it is highly recommended that you remark the line instead of removing it. This will prevent issues from arising if the line needs to be placed back into the autoexec.bat.

Getting additional memory

The below commands will help allow your computer to load programs into memory more efficiently allowing you to have more memory for MS-DOS programs / games.

Ensure you have the below three lines at the beginning of your config.sys file.

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

By placing the DOS=HIGH,UMB on the second line, this can, in some cases, save memory because it is loading DOS into upper memory before loading the memory manager. Additionally, the first and third lines cannot be loaded into high memory because these lines are the memory managers.

Load all your devices in your config.sys and autoexec.bat into high memory.

Index

Help
 

Category:

Hardware
Software

Companies:

None

Related Pages:
MS-DOS
Windows 3.x
Windows 95
Windows 98

 

 

Resolved

Help
 


Were you able to locate the answer to your questions?

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 /XLoads 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.
CLSMS-DOS command to clear screen.
WINUsed 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,0The 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.

 

   TECHNICAL SUPPORT

Reference

Issue / Question

FORUMIf your question is not listed on this page, please try our online forum.
CH000007Getting the mouse to work in MS-DOS
CH000210As the computer boots I receive bad command or file name.
CH000360How to get sound in MS-DOS.
CH000361MS-DOS issues with Windows ME.
CH000382Stack overflow system halted.
CH000425Himem.sys missing or corrupt.

http://www.computerhope.com/ac.htm

IIS短文件名泄露漏洞:原理剖析与四种根治方案详解 在Web安全领域,信息泄露漏洞常被忽视,却往往是攻击链的关键起点。其原理多源于系统历史兼容性设计或应用层错误处理逻辑的差异,攻击者通过分析响应特征(如HTTP状态码)进行“盲注”式探测,从而获取目录结构、配置文件命名等敏感信息。这类漏洞的技术价值在于揭示了纵深防御中“攻击面收敛”的重要性,通过消除不必要的系统特性或规范请求处理逻辑,能有效阻断攻击者的侦察阶段。在Windows服务器环境中,IIS短文件名泄露便是一个典型例子,它利用了NTFS文件系统的8.3短文件名机制与IIS对含波浪号(~)请求的差异化响应 阅读详情

相关推荐

库存管理基于Excel的多商品组合订单需求拆解模型:SKU级供需预测与四情景压力测试系统设计 Excel 多商品组合订单的需求拆解|Excel模型与模拟数据

内容概要:本文档围绕Excel中多商品组合订单的基础SKU需求拆解,构建从订单行、组合用量表到仓库周需求、期初可供、计划到货及欠交结转的完整计算链条。通过四种组合、六种SKU、两座仓库和八个业务周的模拟数据,演示如何将组合套数准确转换为SKU件数,防止重复扣减与错误状态纳入,并按周递推供需覆盖与欠交变化。文档提供结构化输入校验、公式体系、守恒检查与四情景复算机制,确保结果可追溯、可核对。全部数据为基于固定随机种子生成的原创模拟记录,配套可编辑Excel工作簿与独立Python程序实现双向验证。 适合人群:适用于负责订单汇总、组合商品管理、库存分析、仓配协同、需求计划及业务分析文档编制的相关人员。日常使用者需掌握Excel基本操作如单元格引用、筛选与求和;具备Python基础者可配合标准库运行程序进行批量验证或数据重生成。业务管理岗可重点阅读结果与风险章节,结合工作表索引追踪数值来源。 使用场景及目标:适用于活动套单、同单含组合与单品、多仓备货、到货周期偏移及需求波动等场景。目标是实现组合订单向基础SKU的精准拆解,按周粒度完成供需匹配与欠交递推,识别输入冲突与窗口外到货影响,支持需求增幅、到货延期等多情景模拟分析,所有结论均可从源订单、BOM、Excel公式或独立程序追溯验证。 其他说明:项目交付包含A4文档、可编辑Excel、完整Python代码、CSV输入表、计算快照、四情景结果、测试记录、README指引及作者验收记录。采用固定随机种子确保数据一致性,强调输入有效性校验与双守恒(供给与需求)原则。Excel工作簿采用三层结构(源输入—公式计算—结果展示),支持手动编辑与自动重算,但扩容需重新生成网格。独立Python程序可用于交叉验证,保障模型可靠性。

MS-DOS系统配置文件解析:CONFIG.SYS与AUTOEXEC.BAT的终极指南

MS-DOS作为早期个人计算机的核心操作系统,其启动配置依赖于两个关键文件:CONFIG.SYS和AUTOEXEC.BAT。这两个文本文件通过简单的命令行指令,控制着系统硬件驱动加载、内存分配和启动程序执行,是理解MS-DOS系统架构的基础。 [![MS-DOS系统logo](https://raw.gitcode.com/GitHub_Trending/ms/MS-DOS/raw/2d04ca

gitblog_01055的博客 1032

东汉AD35年世界历史地图矢量文件SHP格式.zip

本资源为《东汉AD35年世界历史地图矢量文件SHP格式》压缩包,文件大小约 29.99 MB,便于集中下载、整理和使用。具体内容请结合压缩包内的实际文件与说明查看。 在当前可读取的目录中,可见JSON 文件、属性表(.dbf)、投影说明文件(.prj)、Shapefile 主文件(.shp)、Shapefile 索引(.shx)。建议解压后保持原有目录结构,先浏览文件清单与说明,再选择需要的资料进行加载或整理。 应用方面,可根据实际资料用于学习练习、资料检索、研究整理或项目参考。使用时可先确定所需内容,建立清晰的文件分类,再按项目要求进行筛选、转换与汇总。 使用 Shapefile 数据时,请把实际配套的 .shp、.shx、.dbf 等文件保存在同一目录,并保持同名关联;加载后再检查坐标系与中文字段显示。如需叠加其它数据,请先统一坐标与字段口径。 数据来源、时间范围、坐标系、字段定义、精度和使用条件,请以实际文件及原始说明为准。本介绍不对文件名之外尚未核实的信息作额外承诺。

手把手教你写批处理

出处:中国DOS联盟之联合DOS批处理的介绍扩展名是bat(在nt/2000/xp/2003下也可以是cmd)的文件就是批处理文件。==== willsort 编注 =======================================.bat是dos下的批处理文件.cmd是nt内核命令行环境的另一种批处理文件从更广义的角度来看,unix的shell脚本以及其它操作系统甚至应用程序中由外壳

蓝法典的专栏 2231

基于FastAPI Vue3 TypeScript的企业级全栈底座:类型共享、权限完整,三端同源 一套代码交付Web/H5/小程序,AI代码生成 RBAC Docker开箱即用一套开源的快速开发平台

基于FastAPI Vue3 TypeScript的企业级全栈底座:类型共享、权限完整,三端同源。一套完全开源的快速开发平台,提供免费使用。它结合了现代、高性能的技术栈,后端采用Fastapi + SQLAlchemy,前端采用基于 vue3 + typescript + vite + pinia + Element-Plus。

YOLO26算法室内办公环境二维码目标检测+训练好的模型+199张数据集+pyqt可视化界面.zip

附训练好的 YOLO 权重与 PyQt 可视化检测界面,页面底部含可视化效果预览,毕设/课设开箱即用。 【数据集概况】 · 检测类别(中文):[二维码(QRCode)] · 总计:199 张 · 测试集:20 张 · 验证集:40 张 · 训练集:139 张 【训练曲线与评估图】 【模型训练配置】 参数 | 值 模型 | yolo26n 训练轮数 | 100 epochs 输入尺寸 | 640x640 批次大小 | 24 优化器 | auto 初始学习率 | 0.01 训练设备 【关键指标汇总】 训练了 56 个 epoch,最终轮指标: 指标 | 数值 mAP50 | **0.9921** mAP50-95 | 0.8216 Precision | 0.9731 Recall | 1.0000 train/box_loss | 0.6220 train/cls_loss | 0.6579 val/box_loss | 0.7042 val/cls_loss | 0.7743 【训练过程分析】 从整体上看,模型在训练过程中表现稳定,尽管在某些阶段出现了轻微的波折,但总体上遵循了预设的收敛路径。前几轮中,loss 的急剧下降让人感觉仿佛是在玩“过山车”,尤其是在训练的前 10 轮,loss 从初始值 2.0 逐渐降到 1.0 以下,这表明模型在快速学习数据的基本特征。然而,从第 15 轮开始,loss 值并没有进一步明显下降,而是趋于平稳,这表明模型已经初步收敛。 在训练曲线的中期,从第 20 轮到第 35 轮,loss 并没有出现大幅波动或平台期。这个阶段的曲线相对平滑,loss 值基本维持在 0.6 至 0.7 之间,这表明模型的泛化能力在逐渐提升。尽管如此,这个阶段确实出现了一些细微的震荡,特别是在第... 使用场景:毕业设计、课程设计、深度学习入门、工业场景落地验证。

BAT——学习之路——入门

一、基础语法: 1.批处理文件是一个“.bat”结尾的文本文件,这个文件的每一行都是一条DOS命令。可以使用任何文本文件编辑工具创建和修改。 2.批处理是一种简单的程序,可以用 if 和 goto 来控制流程,也可以使用 for 循环。 3.批处理的编程能力远不如C语言等编程语言,也十分不规范。 4.每个编写好的批处理文件都相当于一个DOS的外部命令,把它所在的目录放到DO

拾贝者 1343

AI第三篇:ScaBench-用真实审计竞赛数据构建可复现的 AI 审计评测集

AI第三篇:ScaBench-用真实审计竞赛数据构建可复现的 AI 审计评测集

AUTOEXEC.BAT及CONFIG.SYS文件用法

Config.sys文件是DOS系统中的一个非常重要的文本文件,它位于启动盘所在的根目录下面,由一系列的系统配置命令组成,这些命令对组成计算机的各个硬件进行初始化配置,以便DOS操作系统在启动之后能够很好地利用它们。    从严格意义上讲,Windows 95/98并不是一个真正的操作系统,它只是建立在DOS操作上的一个GUI(图形用户界面)的非常庞大的应用程序,它在启动之后便从DOS系统中接管了

benjiamen的专栏 1万+

项目管理-(补充)七种基本质量工具

七种基本质量工具,用于PDCA循环的架构内 解决与质量相关的问题,分为老七工具和新七工具。 1)老七种:刘英只点劣质茶(流程图、因果图、直方图、散点图、帕累托图、控制图、核查表)2)新七种:锯树联亲测动优(矩阵图、树形图、关联图、亲和图、过程决策程序图、活动网络图、优先矩阵)

weixin_42081167的博客 4625

Unreal Engine鸿蒙移植实战:环境配置、构建流程与性能优化指南

游戏引擎移植是跨平台开发中的关键技术环节,其核心原理在于通过适配目标操作系统的底层接口和工具链,实现同一套代码在不同硬件和软件环境下的高效运行。这项技术的价值在于最大化代码复用率,降低多平台维护成本,并能让应用快速触达新兴生态系统的用户。在移动游戏和XR应用领域,随着鸿蒙HarmonyOS生态的快速发展,将成熟的商业引擎如Unreal Engine迁移至此平台,成为开发者探索新市场机会的重要路径。本文聚焦于Unreal Engine项目向鸿蒙系统的移植实践,详细解析了从环境搭建、源码适配到构建打包的全链路流

weixin_29011395的博客 429

Windows上命令行实现运行时添加ODBC数据源-odbcconf命令的使用

     最近做的一个项目要求程序可以自动在windows上添加一个ODBC数据源,发现可以用Windows API中的SQLConfigDataSource函数可以实现,在查看MSDN文档时,这个函数等同于odbcconf.exe命令行工具。最好是使用SQLConfigDataSource自己实现一个application,用来创建ODBC数据源,但是使用odbcconf.exe命令行工具,然后...

seeallsea 1694

QGC二次开发实战指南(一):从零构建自定义地面站界面

本文详细介绍了QGC二次开发实战指南,从零开始构建自定义地面站界面。通过QT和QML技术结合MAVLINK协议,开发者可以打造适合特定业务场景的无人机监控系统,提升操作效率与用户体验。文章包含环境搭建、界面设计、数据绑定等完整开发流程,是QGC二次开发的实用教程。

weixin_28693683的博客 502

win98系统只能进安全模式的解决方法

问题的起因: (1)只能在安全模式下进入系统 (2)不在安全模式下进入系统选择正常进入,则直接在黑屏状态下显示如下文字: Insuficient memory to initialize windows. Quit one or more memory-resident programs or remove unnecessary u...

weixin_30518397的博客 456

Cadence学习之路:什么是PCB工艺的正片与负片

正片??负片??Flash焊盘的创建与使用

qq_46757048的博客 4252

一条 POST 创建整棵业务对象树,SAP Gateway Deep Create 的运行机制与 ABAP 实现

SAPUI5 的 OData V2 Model 支持 Deep Create,可以为一个新建的 transient parent context 创建 Navigation Property 下的 subentity,并把这些子实体的数据合并进 Root Entity 对应的 OData 请求 Payload。销售组织是否合法,客户是否允许下单,物料是否存在,销售区域是否匹配,计量单位是否正确,项目类别如何确定,定价是否成功,合作伙伴如何派生,交货工厂如何确定,这些都可能在一次创建过程中被触发。

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 152
上一篇: 视频转换专家 Xilisoft Video Converter使用简介
下一篇: 关于DOS游戏在XP系统下运行的总结
mlxia
博客等级 码龄26年 28粉丝 410原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址