中国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-10-31 13:38
47,815 topics / 349,930 posts / today 0 new / 48,290 members
DOS开发编程 & 发展交流 (开发室) » How to make an .EXE file run automatically
Printable Version  1,302 / 5
Floor1 yuan_si Posted 2004-02-18 00:00
初级用户 Posts 1 Credits 105
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!
Floor2 youjiang Posted 2004-02-18 00:00
初级用户 Posts 20 Credits 123
Load it in AUTOEXEC。BAT,
Floor3 qinqong Posted 2004-03-02 00:00
高级用户 Posts 148 Credits 599
In autoexec.bat, put the following line:
*.exe
and it'll be OK!
Floor4 MYS Posted 2004-03-04 00:00
元老会员 Posts 1,637 Credits 5,170 From 广东佛山
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.
Floor5 sunny1979 Posted 2004-03-09 00:00
初级用户 Posts 86 Credits 376
You absolutely have to write the path clearly!!!!
Floor6 flyingfish Posted 2004-03-10 00:00
初级用户 Posts 1 Credits 102
@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



[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023