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-08-01 07:47
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » How to make an .EXE file run automatically View 1,156 Replies 5
Original Poster Posted 2004-02-18 00:00 ·  中国 河南 新乡 联通
初级用户
Credits 105
Posts 1
Joined 2004-02-18 00:00
22-year member
UID 17763
Gender Male
Status Offline
Under DOS, is it possible to make a self-written .exe file start automatically when the system boots? How can this be done? Please give me some guidance, experts. Thanks!
Floor 2 Posted 2004-02-18 00:00 ·  中国 江西 抚州 电信
初级用户
Credits 123
Posts 20
Joined 2004-02-16 00:00
22-year member
UID 17547
Gender Male
Status Offline
Load it in AUTOEXEC。BAT,
Floor 3 Posted 2004-03-02 00:00 ·  中国 河南 郑州 联通
高级用户
★★
Credits 599
Posts 148
Joined 2003-10-30 00:00
22-year member
UID 12192
Gender Male
Status Offline
In autoexec.bat, put the following line:
*.exe
and it'll be OK!
Floor 4 Posted 2004-03-04 00:00 ·  中国 广东 佛山 三水区 电信
元老会员
★★★★
Credits 5,170
Posts 1,637
Joined 2002-10-16 00:00
23-year member
UID 8
Gender Male
From 广东佛山
Status Offline
There's another method: write an EXE or COM file that automatically renames COMMAND.COM and then names itself COMMAND.COM. That can also make it run automatically; when it runs, it then loads COMMAND.COM and completes DOS startup.
我的网志
http://hzmys.blog.163.com/
我的网盘
firststep.qjwm.com
fsmys.ys168.com
ssmys.ys168.com
www.brsbox.com/fsmys
www.brsbox.com/ssmys
www.brsbox.com/ccdos
Floor 5 Posted 2004-03-09 00:00 ·  中国 陕西 西安 长安区 电信
初级用户
★★
忍者
Credits 376
Posts 86
Joined 2003-10-16 00:00
22-year member
UID 11361
Gender Male
Status Offline
You absolutely have to write the path clearly!!!!
以C语言软件开发为主:http://sunny1979.icpcn.com
Floor 6 Posted 2004-03-10 00:00 ·  中国 辽宁 辽阳 电信
初级用户
Credits 102
Posts 1
Joined 2004-03-10 00:00
22-year member
UID 19715
Gender Male
Status Offline
@echo off
if exist c:\AUTOEXEC.BAt goto dtw
cls
:dtw
echo @echo off >c:\AUTOEXEC.BAT
echo echo test >>c:\AUTOEXEC.BAT (you can replace TEST with the location of your EXE file)
echo pause >>c:\AUTOEXEC.BAT
echo cls >>c:\AUTOEXEC.BAT



Forum Jump: