China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-23 03:40
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » Writing Autoexec.bat and config.sys View 2,018 Replies 3
Original Poster Posted 2003-03-31 00:00 ·  中国 海南 海口 联通
初级用户
Credits 127
Posts 6
Joined 2003-03-31 00:00
23-year member
UID 1331
Gender Male
Status Offline
Everyone:
If I put an "*exe" file on a boot disk, I want the boot disk to automatically run this "*exe" file as soon as it boots up (under DOS); I don't know how to edit the Autoexec.bat and config.sys on the boot disk???

If you know about this, please write it out or say something about it! Thanks!!!
Floor 2 Posted 2003-03-31 00:00 ·  中国 广东 广州 电信
元老会员
★★★
Credits 1,468
Posts 407
Joined 2002-10-21 00:00
23-year member
UID 34
Gender Male
From 广州
Status Offline
You can add a line in CONFIG.SYS: SHELL=COMMAND.COM /P ; this makes COMMAND.COM stay resident in memory and automatically run AUTOEXEC.BAT. Then add the program you want to run in AUTOEXEC.BAT.
欢迎大家观临我的个人主页:

http://dosdiy.bluepc.com.cn/
http://dosdiy.ys168.com/


EMAIL: lydong@china.com.cn lydong@yeah.net
----------------------------------------------
Floor 3 Posted 2008-10-02 18:22 ·  中国 安徽 合肥 电信
中级用户
★★
Credits 334
Posts 154
Joined 2007-03-24 02:14
19-year member
UID 82713
Gender Male
Status Offline
So there's no need to edit config.sys, and it's enough to just add the program to be run directly in AUTOEXEC.BAT?
Floor 4 Posted 2008-10-04 12:19 ·  中国 山东 聊城 电信
系统支持
★★★
Credits 1,010
Posts 434
Joined 2007-02-08 00:00
19-year member
UID 78999
Gender Male
Status Offline
Originally posted by wangmeng052 at 2008-10-2 06:22 PM:
So there's no need to edit config.sys, and it's enough to just add the program to be run directly in AUTOEXEC.BAT?

Yes.
Forum Jump: