中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-09-06 08:46
47,812 topics / 349,914 posts / today 0 new / 48,268 members
DOS启动盘 & LOGO技术 (启动盘室) » Writing Autoexec.bat and config.sys
Printable Version  2,088 / 3
Floor1 阿文 Posted 2003-03-31 00:00
初级用户 Posts 6 Credits 127
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!!!
Floor2 Lydong Posted 2003-03-31 00:00
元老会员 Posts 407 Credits 1,468 From 广州
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.
Floor3 wangmeng052 Posted 2008-10-02 18:22
中级用户 Posts 154 Credits 334
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?
Floor4 AlexZhang Posted 2008-10-04 12:19
系统支持 Posts 439 Credits 1,025
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.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023