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!
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!!!
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.
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?