Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I need to know how to make a autorun for MS-dos (Not Windows). So when I boot up the computer it will let me boot off or run a program on the cd with out having to play with MS-dos to make it run
Bp103

The AUTOEXEC.BAT file is used to autostart programs, if for example I wanted to auto run Arachne Web Browser my AUTOEXEC.BAT would look similar to this:
SET BLASTER=A220 D5 I1
C:\DOS\SMARTDRV.exe /X
@ECHO OFF
PROMPT $p$g
PATH C:\DOS
SET TEMP=C:\DOS
c:\ctmouse\ctmouse.exe
c:\network\e100bpkt.com 0x60
c:\arachne\arachne

Autorun feature is the ability to run an specific program as soon as the CD is inserted at any moment while the OS is fully loaded. If this is what you want to do, it is impossible without windows, as DOS (MSCDEX, SHSUCDEX or the CD extension software you use, in reality) does not trap the CD insertion notification message to look for a configuration file that specifies the file which should be ran.
But, after reading further your message, it seems that what you really want is a bootable CD that simply executes a program during startup. It is a matter of adding it to the autoexec.bat in this case, making sure to use the drive letter that your CD assigns to itself when it boots

If you put it in the Autoexec.bat file you will have to load the same program every time you boot your computer. Your only option I can see is to run a batch file. After your computer boots slip in the CD, type your batch file name at the command prompt.
To make a batch file, at the C prompt type "edit xxxx.bat" replace the x's with your filename. An example of a batch file.
"d:" //go to CD drive
"CD/xxx //change to exe dir
"xxxx" //execute exe file

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |